Package zendesk.chat
Interface AccountProvider
- 
public interface AccountProviderA provider to access account information.You can access it as follows:
ProfileProvider profileProvider = Chat.INSTANCE.providers().accountProvider();Make sure to initialize Zendesk Chat SDK first before accessing the providers, see
Chat.init(Context, String)for more details. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description AccountgetAccount()Gets the currently cached account.voidgetAccount(<any> callback)Gets the latestAccount.voidobserveAccount(ObservationScope observationScope, <any> observer)Observes changes to theAccountin real-time. 
 - 
 
- 
- 
Method Detail
- 
getAccount
void getAccount(<any> callback)
Gets the latestAccount.- Parameters:
 callback- The callback to invoke which will return anAccountor anErrorResponse
 
- 
getAccount
Account getAccount()
Gets the currently cached account.- Returns:
 - The current 
Accountornullif there is no cached value 
 
- 
observeAccount
void observeAccount(ObservationScope observationScope, <any> observer)Observes changes to theAccountin real-time.- Parameters:
 observationScope- the lifespan of the observationobserver- The observer to be notified whenAccountdata changes
 
 - 
 
 -