Class iOSSensusServiceHelper
Inheritance
System.Object
iOSSensusServiceHelper
Inherited Members
Sensus.SensusServiceHelper.GpsPauseLocationUpdatesAutomatically
Sensus.SensusServiceHelper.GpsActivityType
Sensus.SensusServiceHelper.GpsListenForSignificantChanges
Sensus.SensusServiceHelper.GpsDeferLocationUpdates
Sensus.SensusServiceHelper.GpsDeferralDistanceMeters
Sensus.SensusServiceHelper.GpsDeferralTimeMinutes
Assembly: SensusiOS.dll
Syntax
public class iOSSensusServiceHelper : SensusServiceHelper, ISensusServiceHelper
Constructors
iOSSensusServiceHelper()
Declaration
public iOSSensusServiceHelper()
Properties
BatteryChargePercent
Declaration
public override float BatteryChargePercent { get; }
Property Value
Type |
Description |
System.Single |
|
Overrides
DeviceId
Declaration
public override string DeviceId { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
DeviceManufacturer
Declaration
public override string DeviceManufacturer { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
DeviceModel
Declaration
public override string DeviceModel { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
IsCharging
Declaration
public override bool IsCharging { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
OperatingSystem
Declaration
public override string OperatingSystem { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
PushNotificationToken
Declaration
public override string PushNotificationToken { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
PushNotificationTokenData
Declaration
public NSData PushNotificationTokenData { get; set; }
Property Value
Type |
Description |
Foundation.NSData |
|
Version
Declaration
public override string Version { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
WiFiConnected
Declaration
public override bool WiFiConnected { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
DisableBluetoothAsync(Boolean, Boolean, String)
Not available on iOS. Will always return a completed System.Threading.Tasks.Task with a result of false.
Declaration
public override Task<bool> DisableBluetoothAsync(bool reenable, bool lowEnergy, string rationale)
Parameters
Type |
Name |
Description |
System.Boolean |
reenable |
If set to true reenable.
|
System.Boolean |
lowEnergy |
If set to true low energy.
|
System.String |
rationale |
Rationale.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
False
|
Overrides
EnableBluetoothAsync(Boolean, String)
Enables the Bluetooth adapter, or prompts the user to do so if we cannot do this programmatically.
Declaration
public override Task<bool> EnableBluetoothAsync(bool lowEnergy, string rationale)
Parameters
Type |
Name |
Description |
System.Boolean |
lowEnergy |
If set to true low energy.
|
System.String |
rationale |
Rationale.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
true , if Bluetooth was enabled, false otherwise.
|
Overrides
EnableProbeWhenEnablingAll(Probe)
Declaration
public override bool EnableProbeWhenEnablingAll(Probe probe)
Parameters
Type |
Name |
Description |
Probe |
probe |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
GetQrCodeImageSource(String)
Declaration
public override ImageSource GetQrCodeImageSource(string contents)
Parameters
Type |
Name |
Description |
System.String |
contents |
|
Returns
Type |
Description |
Xamarin.Forms.ImageSource |
|
Overrides
KeepDeviceAwakeAsync()
Declaration
public override Task KeepDeviceAwakeAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
LetDeviceSleepAsync()
Declaration
public override Task LetDeviceSleepAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
ProtectedFlashNotificationAsync(String)
Declaration
protected override Task ProtectedFlashNotificationAsync(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
RegisterWithNotificationHubAsync(Tuple<String, String>)
Declaration
protected override Task RegisterWithNotificationHubAsync(Tuple<string, string> hubSas)
Parameters
Type |
Name |
Description |
System.Tuple<System.String, System.String> |
hubSas |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
RequestNewPushNotificationToken()
Declaration
protected override void RequestNewPushNotificationToken()
Overrides
RunVoicePromptAsync(String, Action)
Declaration
public override Task<string> RunVoicePromptAsync(string prompt, Action postDisplayCallback)
Parameters
Type |
Name |
Description |
System.String |
prompt |
|
System.Action |
postDisplayCallback |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
Overrides
SendEmailAsync(String, String, String)
Declaration
public override Task SendEmailAsync(string toAddress, string subject, string message)
Parameters
Type |
Name |
Description |
System.String |
toAddress |
|
System.String |
subject |
|
System.String |
message |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
ShareFileAsync(String, String, String)
Declaration
public override Task ShareFileAsync(string path, string subject, string mimeType)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
subject |
|
System.String |
mimeType |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
TextToSpeechAsync(String)
Declaration
public override Task TextToSpeechAsync(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
UnregisterFromNotificationHubAsync(Tuple<String, String>)
Declaration
protected override Task UnregisterFromNotificationHubAsync(Tuple<string, string> hubSas)
Parameters
Type |
Name |
Description |
System.Tuple<System.String, System.String> |
hubSas |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
Implements