TrustedTime

public final class TrustedTime


Entry point for developers to access the Trusted Time APIs.

Summary

Public methods

static Task<TrustedTimeClient>

Creates a Task that provides a new instance of TrustedTimeClient for use by an Activity.

static Task<TrustedTimeClient>

Creates a Task that provides a new instance of TrustedTimeClient for use in a non-activity context.

Public methods

createClient

public static Task<TrustedTimeClientcreateClient(Activity activity)

Creates a Task that provides a new instance of TrustedTimeClient for use by an Activity. Any resulting TrustedTimeClient is owned by the caller and must be disposed of using dispose to guarantee associated resources are freed. See TrustedTimeClient for more information about disposal.

Parameters
Activity activity

the activity that is using this client

createClient

public static Task<TrustedTimeClientcreateClient(Context context)

Creates a Task that provides a new instance of TrustedTimeClient for use in a non-activity context. Any resulting TrustedTimeClient is owned by the caller and must be disposed of using dispose to guarantee associated resources are freed. See TrustedTimeClient for more information about disposal.

Parameters
Context context

the context that is using this client