TokenStore
public interface TokenStore
Users should implement this interface to persist the given Token (across app restarts). Once implemented, they should override getTokenStore to return an instance. Finally, they should execute the following code themselves to set the verified provider:
TokenStore tokenStore = ... // Instantiate the implemented class. String packageName = ... // Package name of the Trusted Web Activity provider. tokenStore.store(Token.create(packageName, getPackageManager());
Token stored at a time. Note that load will be called by TrustedWebActivityService on a binder thread. Whereas store can be called by the user on whichever thread they like.
Summary
Public methods |
|
|---|---|
abstract @Nullable Token |
This method returns the |
abstract void |
@WorkerThreadThis method should persist the given |