getUserPreferredLocale()
Retrieves the language settings from VIVE Connect.
func getUserPreferredLocale() async throws -> Locale
Return value
The locale that the user specified in the VIVE Connect settings.
Exception
The following exceptions may be thrown: ViveGlassError.UnregisteredAppException, ViveGlassError.GlassesPermissionDeniedException.
See also
Error handling and exceptions
enum ViveGlassError
This represents an error thrown by the VIVE AI Glasses SDK.