Class FenceStatus

Definition

Namespace:
Tizen.Location.Geofence
Assembly:
Tizen.Location.Geofence.dll

The geofence status describes the current state and duration of a geofence.

  • State: The state is specified by the current state of the fence.
  • Duration: Geofence is specified by the duration of the current state.
C#
Copy
[Obsolete("Deprecated since API11. Might be removed in API13")] public class FenceStatus : IDisposable
Inheritance
object
FenceStatus
Implements
System.IDisposable

Constructors

View Source

FenceStatus(int)

Creates a new geofence status.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Might be removed in API13")] public FenceStatus(int fenceId)
Parameters
Type Name Description
int fenceId

The geofence ID.

Exceptions
Type Condition
System.ArgumentException

In case of an invalid parameter.

System.NotSupportedException

In case of geofence is not supported.

Properties

View Source

Duration

Gets the amount of seconds, the geofence is in the current state.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Might be removed in API13")] public int Duration { get; }
Property Value
Type Description
int
Exceptions
Type Condition
System.NotSupportedException

In case the geofence is not supported.

View Source

State

Gets the state of geofence.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Might be removed in API13")] public GeofenceState State { get; }
Property Value
Type Description
GeofenceState
Exceptions
Type Condition
System.NotSupportedException

In case the geofence is not supported.

Methods

View Source

Dispose()

The overloaded Dispose API for destroying the fence handle.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Might be removed in API13")] public void Dispose()
View Source

Dispose(bool)

Dispose.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Might be removed in API13")] protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
View Source

~FenceStatus()

The destructor of the FenceStatus class.

Declaration
C#
Copy
protected ~FenceStatus()

Implements

System.IDisposable