FirebaseInstanceID Framework Reference | Latest TMZ Celebrity News & Gossip | Watch TMZ Live

FirebaseInstanceID Framework Reference

Type Definitions

Firebase Instance ID is deprecated. Please use Firebase Installations instead.

The following type definitions are available globally.

  • @related FIRInstanceID

    The completion handler invoked when the InstanceID token returns. If the call fails we return the appropriate error code as described below.

    Declaration

    Swift

    typealias InstanceIDTokenHandler = (String?, Error?) -> Void

    Parameters

    token

    The valid token as returned by InstanceID backend.

    error

    The error describing why generating a new token failed. See the error codes below for a more detailed description.

  • @related FIRInstanceID

    The completion handler invoked when the InstanceID deleteToken returns. If the call fails we return the appropriate error code as described below

    Declaration

    Swift

    typealias InstanceIDDeleteTokenHandler = (Error) -> Void

    Parameters

    error

    The error describing why deleting the token failed. See the error codes below for a more detailed description.

  • @related FIRInstanceID

    The completion handler invoked when the app identity is created. If the identity wasn’t created for some reason we return the appropriate error code.

    Declaration

    Swift

    typealias InstanceIDHandler = (String?, Error?) -> Void

    Parameters

    identity

    A valid identity for the app instance, nil if there was an error while creating an identity.

    error

    The error if fetching the identity fails else nil.

  • @related FIRInstanceID

    The completion handler invoked when the app identity and all the tokens associated with it are deleted. Returns a valid error object in case of failure else nil.

    Declaration

    Swift

    typealias InstanceIDDeleteHandler = (Error?) -> Void

    Parameters

    error

    The error if deleting the identity and all the tokens associated with it fails else nil.

  • @related FIRInstanceID

    The completion handler invoked when the app identity and token are fetched. If the identity wasn’t created for some reason we return the appropriate error code.

    Declaration

    Swift

    typealias InstanceIDResultHandler = (InstanceIDResult?, Error?) -> Void

    Parameters

    result

    The result containing an identity for the app instance and a valid token, nil if there was an error while creating the result.

    error

    The error if fetching the identity or token fails else nil.

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.