Class MLSystemNotifications
This extension provides control over the system notifications. This extension allows system notifications that might obscure the field of view to be disabled.
Note that even when all system notifications have been suppressed, developers can still intercept certain events that allow them to properly react to the underlying reason of system notifications.
Permissions
Android applications must have the com.magicleap.permission.SYSTEM_NOTIFICATION permission listed in their manifest to use this extension. (protection level: normal)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intExtendsXrResult.static final intExtendsXrResult.static final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrSetSystemNotificationsML(org.lwjgl.openxr.XrInstance instance, long info) Unsafe version of:SetSystemNotificationsMLstatic intxrSetSystemNotificationsML(org.lwjgl.openxr.XrInstance instance, XrSystemNotificationsSetInfoML info) Set system notification suppression state.
-
Field Details
-
XR_ML_system_notifications_SPEC_VERSION
public static final int XR_ML_system_notifications_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_ML_SYSTEM_NOTIFICATIONS_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SYSTEM_NOTIFICATIONS_SET_INFO_ML
public static final int XR_TYPE_SYSTEM_NOTIFICATIONS_SET_INFO_MLExtendsXrStructureType.- See Also:
-
XR_ERROR_SYSTEM_NOTIFICATION_PERMISSION_DENIED_ML
public static final int XR_ERROR_SYSTEM_NOTIFICATION_PERMISSION_DENIED_MLExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_SYSTEM_NOTIFICATION_INCOMPATIBLE_SKU_ML
public static final int XR_ERROR_SYSTEM_NOTIFICATION_INCOMPATIBLE_SKU_MLExtendsXrResult.Enum values:
- See Also:
-
-
Method Details
-
nxrSetSystemNotificationsML
public static int nxrSetSystemNotificationsML(org.lwjgl.openxr.XrInstance instance, long info) Unsafe version of:SetSystemNotificationsML -
xrSetSystemNotificationsML
public static int xrSetSystemNotificationsML(org.lwjgl.openxr.XrInstance instance, XrSystemNotificationsSetInfoML info) Set system notification suppression state.C Specification
The
SetSystemNotificationsMLfunction is defined as:XrResult xrSetSystemNotificationsML( XrInstance instance, const XrSystemNotificationsSetInfoML* info);Description
This API will work only on certain SKUs. When called on an incompatible SKU the
ERROR_SYSTEM_NOTIFICATION_INCOMPATIBLE_SKU_MLerror must be returned.If the com.magicleap.permission.SYSTEM_NOTIFICATION permission is not granted, the runtime must return
ERROR_SYSTEM_NOTIFICATION_PERMISSION_DENIED_ML.Valid Usage (Implicit)
- The
XR_ML_system_notificationsextension must be enabled prior to callingSetSystemNotificationsML instancemust be a validXrInstancehandleinfomust be a pointer to a validXrSystemNotificationsSetInfoMLstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance-XrInstance.info- a pointer to anXrSystemNotificationsSetInfoMLstructure.
- The
-