Show / Hide Table of Contents

    Class Account

    Definition

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

    Represents the account information.

    public class Account : IDisposable
    Inheritance
    Object
    Account
    Implements
    IDisposable

    Constructors

    View Source

    Account(SafeAccountHandle)

    Account constructor.

    Declaration
    public Account(SafeAccountHandle handle)
    Parameters
    Type Name Description
    SafeAccountHandle handle

    The account handle.

    API Level: 4

    Properties

    View Source

    AccessToken

    Access token of the account.

    Declaration
    public string AccessToken { get; set; }
    Property Value
    Type Description
    String

    Access token of the account.

    API Level: 3
    View Source

    AccountId

    Id of the Account.

    Declaration
    public int AccountId { get; }
    Property Value
    Type Description
    Int32
    Remarks

    Account ID shall be created only when the account is added to the database.

    API Level: 3
    View Source

    AuthType

    Authentication type of the account.

    Declaration
    public AccountAuthType AuthType { get; set; }
    Property Value
    Type Description
    AccountAuthType

    Authentication type of the account.

    API Level: 3
    View Source

    DisplayName

    Display name of the account.

    Declaration
    public string DisplayName { get; set; }
    Property Value
    Type Description
    String

    Display name of the account.

    API Level: 3
    View Source

    DomainName

    Domain name of the account.

    Declaration
    public string DomainName { get; set; }
    Property Value
    Type Description
    String

    Domain name of the account.

    API Level: 3
    View Source

    EmailId

    Email ID of the account.

    Declaration
    public string EmailId { get; set; }
    Property Value
    Type Description
    String

    Email ID of the account.

    API Level: 3
    View Source

    IconPath

    Icon path of the account.

    Declaration
    public string IconPath { get; set; }
    Property Value
    Type Description
    String

    Icon path of the account.

    API Level: 3
    View Source

    PackageName

    Package name of the account.

    Declaration
    public string PackageName { get; set; }
    Property Value
    Type Description
    String

    Package name of the account.

    API Level: 3
    View Source

    SafeAccountHandle

    Handle of the account.

    Declaration
    public SafeAccountHandle SafeAccountHandle { get; }
    Property Value
    Type Description
    SafeAccountHandle

    Account handle.

    API Level: 4
    View Source

    SecrecyState

    Secrecy state of the account.

    Declaration
    public AccountSecrecyState SecrecyState { get; set; }
    Property Value
    Type Description
    AccountSecrecyState

    Secrecy state of the account.

    API Level: 3
    View Source

    Source

    Source of the account.

    Declaration
    public string Source { get; set; }
    Property Value
    Type Description
    String

    Account source.

    API Level: 3
    View Source

    SyncState

    Sync state of the account.

    Declaration
    public AccountSyncState SyncState { get; set; }
    Property Value
    Type Description
    AccountSyncState

    Sync state of the account.

    API Level: 3
    View Source

    UserName

    UserName of the account.

    Declaration
    public string UserName { get; set; }
    Property Value
    Type Description
    String

    User name of the account.

    API Level: 3

    Methods

    View Source

    CreateAccount()

    Creates a new account instance.

    Declaration
    public static Account CreateAccount()
    Returns
    Type Description
    Account

    Account Instance.

    API Level: 3
    View Source

    Dispose()

    Overloaded Dispose API for destroying the account handle.

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

    Dispose(Boolean)

    Dispose API for destroying the account handle.

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

    The boolean value for destoying account handle.

    API Level: 3
    View Source

    Finalize()

    Account destructor.

    Declaration
    protected void Finalize()
    API Level: 4
    View Source

    GetAllCapabilities()

    Gets all the capabilities of the account.

    Declaration
    public Dictionary<string, CapabilityState> GetAllCapabilities()
    Returns
    Type Description
    Dictionary<String, CapabilityState>

    List of capabilities as dictionary.

    API Level: 3
    View Source

    GetAllCustomValues()

    Gets all the custom values.

    Declaration
    public Dictionary<string, string> GetAllCustomValues()
    Returns
    Type Description
    Dictionary<String, String>

    List of custom key, value pairs as dictionary.

    API Level: 3
    View Source

    GetCapability(String)

    Gets all the capabilities of the account.

    Declaration
    public CapabilityState GetCapability(string capabilityType)
    Parameters
    Type Name Description
    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
    ArgumentException

    In case of an invalid parameter.

    API Level: 3
    View Source

    GetCustomValue(String)

    Gets the user specific custom text of an account key.

    Declaration
    public string GetCustomValue(string key)
    Parameters
    Type Name Description
    String key

    The key to retrieve custom text.

    Returns
    Type Description
    String

    The text of the given key.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    InvalidOperationException

    If there is no given capability type in the account.

    API Level: 3
    View Source

    GetUserInt(Int32)

    Gets the user integer value.

    Declaration
    public int GetUserInt(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the user integer (must be in range from 0 to 4).

    Returns
    Type Description
    Int32

    The user integer of the given key.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    API Level: 3
    View Source

    GetUserText(Int32)

    Gets the user text.

    Declaration
    public string GetUserText(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the user text (must be in range from 0 to 4).

    Returns
    Type Description
    String

    The user text of the given key.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    OutOfMemoryException

    In case of out of memory.

    API Level: 3
    View Source

    SetCapability(String, CapabilityState)

    Sets the account capability.

    Declaration
    public void SetCapability(string capabilityType, CapabilityState state)
    Parameters
    Type Name Description
    String capabilityType

    The account capability type.

    CapabilityState state

    The account capability state.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    API Level: 3
    View Source

    SetCustomValue(String, String)

    Sets the custom value to the account.

    Declaration
    public void SetCustomValue(string key, string value)
    Parameters
    Type Name Description
    String key

    Key to be added to the account.

    String value

    Value to be updated for respective key for the account.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    API Level: 3
    View Source

    SetUserInt(Int32, Int32)

    Sets the user integer value.

    Declaration
    public void SetUserInt(int index, int value)
    Parameters
    Type Name Description
    Int32 index

    The index of the user integer (must be in range from 0 to 4).

    Int32 value

    The integer to set as the user integer.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    API Level: 3
    View Source

    SetUserText(Int32, String)

    Sets the user text.

    Declaration
    public void SetUserText(int index, string text)
    Parameters
    Type Name Description
    Int32 index

    The index of the user text (must be in range from 0 to 4).

    String text

    The text string to set as the user text.

    Exceptions
    Type Condition
    ArgumentException

    In case of an invalid parameter.

    API Level: 3

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX