Use the com.robotemi.sdk.notification package
masterThe com.robotemi.sdk.notification package provides the types necessary to display and handle notifications on the temi device. It includes different notification styles and a callback mechanism to handle user interactions with notification buttons.
Available Notification Types
All notification types implement the Notification interface:
AlertNotification: Used for high-priority alerts.BillboardNotification: Used for large, billboard-style visual notifications.NormalNotification: Standard notifications for general information.
Handling User Interactions
To receive information about which button a user pressed on a notification, use the NotificationCallback. This class encapsulates the notification ID and the specific button number that was pressed, allowing your skill to respond to user input.