create

fun <T> create(registry: WearDataLayerRegistry, serializer: Serializer<T>, key: String = DEFAULT_TOKEN_BUNDLE_KEY): TokenBundleRepositoryImpl<T>

Factory method for TokenBundleRepositoryImpl.

If multiple token bundles are available, specify the key of the specific token bundle wished to be retrieved. Otherwise the token bundle stored with the default key will be used.