[android-components](../../index.md) / [mozilla.components.service.fxa](../index.md) / [FirefoxAccount](index.md) / [registerPersistenceCallback](./register-persistence-callback.md)

# registerPersistenceCallback

`fun registerPersistenceCallback(callback: `[`StatePersistenceCallback`](../../mozilla.components.concept.sync/-state-persistence-callback/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/FirefoxAccount.kt#L99)

Overrides [OAuthAccount.registerPersistenceCallback](../../mozilla.components.concept.sync/-o-auth-account/register-persistence-callback.md)

