Class AccountProvider
Definition
- Namespace:
- Tizen.Account.AccountManager
- Assembly:
- Tizen.Account.AccountManager.dll
The account ID.
public class AccountProvider : IDisposable
- Inheritance
-
objectAccountProvider
- Implements
-
System.IDisposable
Properties
View SourceAppId
The account ID.
Declaration
public string AppId { get; }
Property Value
Type | Description |
---|---|
string |
IconPath
Icon path of the account provider.
Declaration
public string IconPath { get; }
Property Value
Type | Description |
---|---|
string |
MultipleAccountSupport
Flag for the account provider if it supports multiple accounts.
Declaration
public bool MultipleAccountSupport { get; }
Property Value
Type | Description |
---|---|
bool |
ServiceProviderId
ServiceProvider ID of the account provider.
Declaration
public string ServiceProviderId { get; }
Property Value
Type | Description |
---|---|
string |
SmallIconPath
Small icon path of the account provider.
Declaration
public string SmallIconPath { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceDispose()
Overloaded Dispose API for destroying the AccountProvider Handle.
Declaration
public void Dispose()
Dispose(bool)
Dispose API for destroying the AccountProvider handle.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | The boolean value for destoying AccountProvider handle. |
~AccountProvider()
AccountProvider deconstructor.
Declaration
protected ~AccountProvider()
GetAllCapabilities()
Retrieves all the capability information of the account provider.
Declaration
public IEnumerable<string> GetAllCapabilities()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> | The list of capability information. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |
GetFeaturesByAppId(string)
Retrieves capability information with the application ID.
Declaration
public static IEnumerable<string> GetFeaturesByAppId(string appId)
Parameters
Type | Name | Description |
---|---|---|
string | appId | The application ID. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><string> | Capability information list for the given appId. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error or record not found for the given application ID. |
System.ArgumentException | In case of an invalid parameter. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |
GetLabel(string)
Gets the specific label information detail of the account provider.
Declaration
public string GetLabel(string locale)
Parameters
Type | Name | Description |
---|---|---|
string | locale | The locale is specified as an ISO 3166 alpha-2 two letter country-code followed by ISO 639-1 for the two-letter language code. For example, "ko_KR" or "ko-kr" for Korean, "en_US" or "en-us" for American English. |
Returns
Type | Description |
---|---|
string | The label text given for the locale. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error or record not found for given locale. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |
GetLabels()
Gets the label information detail of the account provider.
Declaration
public Dictionary<string, string> GetLabels()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> | All the labels information for the given account provider. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |
GetLabelsByAppId(string)
Gets the specific label information detail of the account provider.
Declaration
public static Dictionary<string, string> GetLabelsByAppId(string appId)
Parameters
Type | Name | Description |
---|---|---|
string | appId | The application ID to search. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, string> | All the labels information for the given application ID. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error or record not found for given the application ID. |
System.ArgumentException | In case of an invalid parameter. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |
IsAppSupported(string)
Checks whether the given appId exists in the account provider DB.
Declaration
public bool IsAppSupported(string appId)
Parameters
Type | Name | Description |
---|---|---|
string | appId | The application ID to check. |
Returns
Type | Description |
---|---|
bool | returns true If App is supported |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error or record not found for the given application ID. |
System.ArgumentException | In case of an invalid parameter. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |
IsFeatureSupportedByApp(string, string)
Checks whether the given application ID supports the capability.
Declaration
public static bool IsFeatureSupportedByApp(string appId, string capability)
Parameters
Type | Name | Description |
---|---|---|
string | appId | The application ID. |
string | capability | The capability information. |
Returns
Type | Description |
---|---|
bool | TRUE if the application supports the given capability, otherwise FALSE if the application does not support the given capability |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | In case of any DB error. |
System.ArgumentException | In case of an invalid parameter. |
System.UnauthorizedAccessException | In case of privilege not defined. |
System.NotSupportedException | The required feature is not supported. |