Actions
Nudge provides a variety of user interaction options to enhance the user experience and enable seamless navigation and functionality. Below is an overview of the available actions:
1. External URL
- Description: Redirects the user to an external website or resource.
- Use Case: Ideal for linking to external content, such as documentation, third-party services, or additional resources.
- Example: Clicking a button opens
https://example.com
in a new tab.
2. Deep Link
- Description: Navigates the user to a specific location within the app or another app.
- Use Case: Useful for directing users to specific app screens or features.
- Example: A deep link navigates to the "Profile" section of the app.
3. Widget
Widgets allow users to interact with various Nudge pages in different formats:
- Full Page: Opens a Nudge page in full-screen mode.
- Bottom Sheet: Displays a Nudge page as a bottom sheet overlay.
- Pop-ups: Shows a Nudge page as a modal pop-up.
- Use Case: Ideal for displaying additional content, forms, or interactive elements without leaving the current context.
4. Close
- Description: Closes the current view or interaction.
- Use Case: Used to dismiss overlays, modals, or other interactive elements.
- Example: A "Cancel" button closes the bottom sheet.
5. Callback
- Description: Sends specific information back to the client-side application.
- Use Case: Enables dynamic interactions by passing data or triggering client-side logic.
- Example: A custom analytics on User Interaction or showing Custom screen not designed with nudge or implemention custom back stack navigation
6. Fire Event
- Description: Triggers a custom event within the application.
- Use Case: Useful for analytics, logging, or triggering specific workflows.
- Example: Clicking a button fires an event to track user engagement.
These user interactions provide flexibility and control, allowing you to create engaging and dynamic experiences within the Nudge platform.