getUserTraveled(completionHandler:)
Obtains information about the user’s travel within an exposure period.
Declaration
func getUserTraveled(completionHandler: @escaping @Sendable (Bool, (any Error)?) -> Void)func userTraveled() async throws -> BoolParameters
- completionHandler:
The completion handler that the framework calls when the method completes.
Discussion
Use this method to determine whether the user has traveled outside of the region associated with your app anytime in the last 14 days. You might use this information to determine when to share keys across regions. The first time you use this method, the user will be asked for permission. The app must be in the foreground the first time this is called so that the app may ask the user for permission.