Search in sources :

Example 1 with CommunicationTokenRefreshOptions

use of com.azure.android.communication.common.CommunicationTokenRefreshOptions in project communication-services-android-calling-hero by Azure-Samples.

the class CallingContext method createTokenCredential.

// endregion
// region Private Methods
private void createTokenCredential() {
    final CommunicationTokenCredential credential = new CommunicationTokenCredential(new CommunicationTokenRefreshOptions(tokenFetcher, true));
    communicationUserCredentialCompletableFuture.complete(credential);
}
Also used : CommunicationTokenRefreshOptions(com.azure.android.communication.common.CommunicationTokenRefreshOptions) CommunicationTokenCredential(com.azure.android.communication.common.CommunicationTokenCredential)

Aggregations

CommunicationTokenCredential (com.azure.android.communication.common.CommunicationTokenCredential)1 CommunicationTokenRefreshOptions (com.azure.android.communication.common.CommunicationTokenRefreshOptions)1