TrustedTime

class TrustedTime


Entry point for developers to access the Trusted Time APIs.

Summary

Public functions

java-static Task<TrustedTimeClient!>!
createClient(activity: Activity!)

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

java-static Task<TrustedTimeClient!>!
createClient(context: Context!)

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

Public functions

createClient

java-static fun createClient(activity: Activity!): Task<TrustedTimeClient!>!

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

java-static fun createClient(context: Context!): Task<TrustedTimeClient!>!

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