Class AccountProvider

Definition

Namespace:
Tizen.Account.AccountManager
Assembly:
Tizen.Account.AccountManager.dll
API Level:
3

The account ID.

C#
Copy
public class AccountProvider : IDisposable
Inheritance
System.Object
AccountProvider
Implements
System.IDisposable

Properties

View Source

AppId

The account ID.

Declaration
C#
Copy
public string AppId { get; }
Property Value
Type Description
System.String
API Level: 3
View Source

IconPath

Icon path of the account provider.

Declaration
C#
Copy
public string IconPath { get; }
Property Value
Type Description
System.String
API Level: 3
View Source

MultipleAccountSupport

Flag for the account provider if it supports multiple accounts.

Declaration
C#
Copy
public bool MultipleAccountSupport { get; }
Property Value
Type Description
Boolean
API Level: 3
View Source

ServiceProviderId

ServiceProvider ID of the account provider.

Declaration
C#
Copy
public string ServiceProviderId { get; }
Property Value
Type Description
System.String
API Level: 3
View Source

SmallIconPath

Small icon path of the account provider.

Declaration
C#
Copy
public string SmallIconPath { get; }
Property Value
Type Description
System.String
API Level: 3

Methods

View Source

Dispose()

Overloaded Dispose API for destroying the AccountProvider Handle.

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Dispose(Boolean)

Dispose API for destroying the AccountProvider handle.

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

The boolean value for destoying AccountProvider handle.

API Level: 3
View Source

Finalize()

AccountProvider deconstructor.

Declaration
C#
Copy
protected void Finalize()
API Level: 3
View Source

GetAllCapabilities()

Retrieves all the capability information of the account provider.

Declaration
C#
Copy
public IEnumerable<string> GetAllCapabilities()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

The list of capability information.

Exceptions
Type Condition
System.InvalidOperationException

In case of any DB error.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account
View Source

GetFeaturesByAppId(String)

Retrieves capability information with the application ID.

Declaration
C#
Copy
public static IEnumerable<string> GetFeaturesByAppId(string appId)
Parameters
Type Name Description
System.String appId

The application ID.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.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.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account
View Source

GetLabel(String)

Gets the specific label information detail of the account provider.

Declaration
C#
Copy
public string GetLabel(string locale)
Parameters
Type Name Description
System.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
System.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.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account
View Source

GetLabels()

Gets the label information detail of the account provider.

Declaration
C#
Copy
public Dictionary<string, string> GetLabels()
Returns
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>

All the labels information for the given account provider.

Exceptions
Type Condition
System.InvalidOperationException

In case of any DB error.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account
View Source

GetLabelsByAppId(String)

Gets the specific label information detail of the account provider.

Declaration
C#
Copy
public static Dictionary<string, string> GetLabelsByAppId(string appId)
Parameters
Type Name Description
System.String appId

The application ID to search.

Returns
Type Description
System.Collections.Generic.Dictionary<System.String, System.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.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account
View Source

IsAppSupported(String)

Checks whether the given appId exists in the account provider DB.

Declaration
C#
Copy
public bool IsAppSupported(string appId)
Parameters
Type Name Description
System.String appId

The application ID to check.

Returns
Type Description
Boolean

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.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account
View Source

IsFeatureSupportedByApp(String, String)

Checks whether the given application ID supports the capability.

Declaration
C#
Copy
public static bool IsFeatureSupportedByApp(string appId, string capability)
Parameters
Type Name Description
System.String appId

The application ID.

System.String capability

The capability information.

Returns
Type Description
Boolean

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.

UnauthorizedAccessException

In case of privilege not defined.

System.NotSupportedException

The required feature is not supported.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/account.read
Feature: http://tizen.org/feature/account

Implements

System.IDisposable