- Enclosing class:
- NotificationPresets
public final class NotificationPresets.QuestNav
extends Object
Contains notification methods related to the QuestNav tracking system.
-
Constructor Summary
Constructors
-
Method Summary
static void
Sends a notification when the QuestNav battery is critically low.
static void
Sends a notification when the QuestNav battery is low.
static void
Sends a notification when the QuestNav disconnects.
static void
Sends a notification when the QuestNav heading reset fails.
static void
Sends a notification when the QuestNav heading is reset.
static void
Sends a notification when the QuestNav pose reset fails.
static void
Sends a notification when the QuestNav pose is reset.
static void
Sends a notification when the QuestNav reconnects.
static void
Sends a notification when the QuestNav tracking is lost.
static void
Sends a notification when the QuestNav tracking is regained.
static void
Sends a notification when the QuestNav transform is updated.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
QuestNav
public QuestNav()
-
Method Details
-
sendQuestNavPoseResetFailedNotification
public static void sendQuestNavPoseResetFailedNotification()
Sends a notification when the QuestNav pose reset fails.
-
sendQuestNavPoseResetNotification
public static void sendQuestNavPoseResetNotification(Pose3d newPose)
Sends a notification when the QuestNav pose is reset.
- Parameters:
newPose - The new pose after reset
-
sendQuestNavHeadingResetFailedNotification
public static void sendQuestNavHeadingResetFailedNotification()
Sends a notification when the QuestNav heading reset fails.
-
sendQuestNavHeadingResetNotification
public static void sendQuestNavHeadingResetNotification()
Sends a notification when the QuestNav heading is reset.
-
-
sendQuestNavReconnectedNotification
public static void sendQuestNavReconnectedNotification()
Sends a notification when the QuestNav reconnects. Only sends if a disconnection was
previously reported.
-
sendQuestNavDisconnectedNotification
public static void sendQuestNavDisconnectedNotification()
Sends a notification when the QuestNav disconnects. Only sends the notification once until
the device reconnects.
-
sendQuestNavBatteryLowNotification
public static void sendQuestNavBatteryLowNotification()
Sends a notification when the QuestNav battery is low. Only sends the notification once per
battery discharge cycle.
-
sendQuestNavBatteryCriticalNotification
public static void sendQuestNavBatteryCriticalNotification()
Sends a notification when the QuestNav battery is critically low. Only sends the notification
once per battery discharge cycle.
-
sendQuestNavTrackingLostNotification
public static void sendQuestNavTrackingLostNotification(int totalTrackingLostEvents)
Sends a notification when the QuestNav tracking is lost. Only sends the notification once
until tracking is regained.
- Parameters:
totalTrackingLostEvents - The times the quest has lost tracking total since app boot.
-
sendQuestNavTrackingRegainedNotification
public static void sendQuestNavTrackingRegainedNotification()
Sends a notification when the QuestNav tracking is regained. Only sends the notification once
until tracking is lost again.