Class LocatorHelper
Definition
- Namespace:
- Tizen.Location
- Assembly:
- Tizen.Location.dll
- API Level:
- 3
This class contains the functionality for obtaining the geographical positioning type.
public static class LocatorHelper
- Inheritance
-
LocatorHelper
Methods
View SourceEnableType(LocationType, Boolean)
Sets the specified geographical positioning type.
Declaration
public static void EnableType(LocationType locationType, bool status)
Parameters
Type | Name | Description |
---|---|---|
LocationType | locationType | The back-end positioning method to be used for LBS. |
Boolean | status | The location setting value. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the operation is invalid for the current state. |
ArgumentException | Thrown when an invalid argument is used. |
NotSupportedException | Thrown when the location is not supported. |
API Level: 4
Privilege Level: platform
Privilege: http://tizen.org/privilege/location.enable
Feature: http://tizen.org/feature/location.gpshttp://tizen.org/feature/location.wps
View SourceIsEnabledType(LocationType)
Checks if the specified geographical positioning type is enabled or not.
Declaration
public static bool IsEnabledType(LocationType locationType)
Parameters
Type | Name | Description |
---|---|---|
LocationType | locationType | The back-end positioning method to be used for LBS. |
Returns
Type | Description |
---|---|
Boolean | Returns a boolean value indicating whether or not the specified method is supported. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the operation is invalid for the current state. |
ArgumentException | Thrown when an invalid argument is used. |
NotSupportedException | Thrown when the location is not supported. |
API Level: 3
Feature: http://tizen.org/feature/location.gpshttp://tizen.org/feature/location.wps
View SourceIsSupportedType(LocationType)
Checks if the specified geographical positioning type is supported or not.
Declaration
public static bool IsSupportedType(LocationType locationType)
Parameters
Type | Name | Description |
---|---|---|
LocationType | locationType | The back-end positioning method to be used for LBS. |
Returns
Type | Description |
---|---|
Boolean | Returns a boolean value indicating whether or not the specified method is supported. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when an invalid argument is used. |
NotSupportedException | Thrown when the location is not supported. |