Share via


PlaceMonitor.ActivateAsync Method

Re-establishes the communication channel with underlying sensor, if it doesn't already exist. Connection needs to be re-established when the application is brought to foreground.

Namespace: Lumia.Sense
Assembly: Lumia.Sense (in Lumia.Sense.dll) Version: 255.255.255.255

Syntax

public IAsyncAction ActivateAsync()
'Declaration
Public Function ActivateAsync As IAsyncAction
public:
virtual IAsyncAction^ ActivateAsync() sealed
function ActivateAsync();

Return Value

Type: IAsyncAction
Returns an IAsyncAction object that is used to control the asynchronous operation.

Implements

ISensor.ActivateAsync()

Exceptions

Exception Condition
COMException All errors are thrown as instances of COMException. To get details about the error pass the HResult property of the exception to GetSenseError(Int32). This method can return the following SenseError enumeration values: SenseDisabled, LocationDisabled, GeneralFailure

See Also

PlaceMonitor Class

PlaceMonitor.PlaceMonitor Members

Lumia.Sense Namespace