GMSAppCheckTokenProvider
@protocol GMSAppCheckTokenProvider <NSObject>Protocol for supplying an App Check token to the Navigation SDK.
-
Fetches an App Check token.
- token: The
NSStringthat was returned, or nil if an error occurred. - error: The error that occurred, if any.
Declaration
Swift
func fetchAppCheckToken() async throws -> StringObjective-C
- (void)fetchAppCheckTokenWithCompletion: (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))completion;Parameters
completionThe completion block to invoke when a token is fetched. The completion block takes two parameters:
- token: The