Class Account
Definition
- Namespace:
- Tizen.Account.AccountManager
- Assembly:
- Tizen.Account.AccountManager.dll
- API Level:
- 3
Represents the account information.
C#Copypublic class Account : IDisposable
- Inheritance
-
Account
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Account(SafeAccountHandle handle)
Parameters
Type | Name | Description |
---|---|---|
SafeAccountHandle | handle | The account handle. |
API Level: 4
Properties
Declaration
C#Copypublic string AccessToken { get; set; }
Property Value
Type | Description |
---|---|
System.String | Access token of the account. |
API Level: 3
Declaration
C#Copypublic int AccountId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Account ID shall be created only when the account is added to the database.
API Level: 3
Declaration
C#Copypublic AccountAuthType AuthType { get; set; }
Property Value
Type | Description |
---|---|
AccountAuthType | Authentication type of the account. |
API Level: 3
Declaration
C#Copypublic string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String | Display name of the account. |
API Level: 3
Declaration
C#Copypublic string DomainName { get; set; }
Property Value
Type | Description |
---|---|
System.String | Domain name of the account. |
API Level: 3
Declaration
C#Copypublic string EmailId { get; set; }
Property Value
Type | Description |
---|---|
System.String | Email ID of the account. |
API Level: 3
Declaration
C#Copypublic string IconPath { get; set; }
Property Value
Type | Description |
---|---|
System.String | Icon path of the account. |
API Level: 3
Declaration
C#Copypublic string PackageName { get; set; }
Property Value
Type | Description |
---|---|
System.String | Package name of the account. |
API Level: 3
Declaration
C#Copypublic SafeAccountHandle SafeAccountHandle { get; }
Property Value
Type | Description |
---|---|
SafeAccountHandle | Account handle. |
API Level: 4
Declaration
C#Copypublic AccountSecrecyState SecrecyState { get; set; }
Property Value
Type | Description |
---|---|
AccountSecrecyState | Secrecy state of the account. |
API Level: 3
Declaration
C#Copypublic string Source { get; set; }
Property Value
Type | Description |
---|---|
System.String | Account source. |
API Level: 3
Declaration
C#Copypublic AccountSyncState SyncState { get; set; }
Property Value
Type | Description |
---|---|
AccountSyncState | Sync state of the account. |
API Level: 3
Declaration
C#Copypublic string UserName { get; set; }
Property Value
Type | Description |
---|---|
System.String | User name of the account. |
API Level: 3
Methods
Declaration
C#Copypublic static Account CreateAccount()
Returns
Type | Description |
---|---|
Account | Account Instance. |
API Level: 3
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | The boolean value for destoying account handle. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
API Level: 4
Declaration
C#Copypublic Dictionary<string, CapabilityState> GetAllCapabilities()
Returns
Type | Description |
---|---|
Dictionary<System.String, CapabilityState> | List of capabilities as dictionary. |
API Level: 3
Declaration
C#Copypublic Dictionary<string, string> GetAllCustomValues()
Returns
Type | Description |
---|---|
Dictionary<System.String, System.String> | List of custom key, value pairs as dictionary. |
API Level: 3
Declaration
C#Copypublic CapabilityState GetCapability(string capabilityType)
Parameters
Type | Name | Description |
---|---|---|
System.String | capabilityType | The capability type to get the capability value. |
Returns
Type | Description |
---|---|
CapabilityState | The capability value (on/off) of the specified CapabilityState. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
API Level: 3
Declaration
C#Copypublic string GetCustomValue(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to retrieve custom text. |
Returns
Type | Description |
---|---|
System.String | The text of the given key. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
InvalidOperationException | If there is no given capability type in the account. |
API Level: 3
Declaration
C#Copypublic int GetUserInt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the user integer (must be in range from 0 to 4). |
Returns
Type | Description |
---|---|
System.Int32 | The user integer of the given key. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
API Level: 3
Declaration
C#Copypublic string GetUserText(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the user text (must be in range from 0 to 4). |
Returns
Type | Description |
---|---|
System.String | The user text of the given key. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
OutOfMemoryException | In case of out of memory. |
API Level: 3
Declaration
C#Copypublic void SetCapability(string capabilityType, CapabilityState state)
Parameters
Type | Name | Description |
---|---|---|
System.String | capabilityType | The account capability type. |
CapabilityState | state | The account capability state. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
API Level: 3
Declaration
C#Copypublic void SetCustomValue(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key to be added to the account. |
System.String | value | Value to be updated for respective key for the account. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
API Level: 3
Declaration
C#Copypublic void SetUserInt(int index, int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the user integer (must be in range from 0 to 4). |
System.Int32 | value | The integer to set as the user integer. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |
API Level: 3
Declaration
C#Copypublic void SetUserText(int index, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the user text (must be in range from 0 to 4). |
System.String | text | The text string to set as the user text. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | In case of an invalid parameter. |