GoogleNavigation Framework Reference

GMSAppCheckTokenProvider

@protocol GMSAppCheckTokenProvider <NSObject>

Protocol for supplying an App Check token to the Navigation SDK.

  • Fetches an App Check token.

    • token: The NSString that was returned, or nil if an error occurred.
    • error: The error that occurred, if any.

    Declaration

    Swift

    func fetchAppCheckToken() async throws -> String

    Objective-C

    - (void)fetchAppCheckTokenWithCompletion:
        (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))completion;

    Parameters

    completion

    The completion block to invoke when a token is fetched. The completion block takes two parameters: