PebbleOS
Loading...
Searching...
No Matches
Typedefs | Enumerations | Functions
timeline_actions.h File Reference
#include <applib/ui/action_menu_window_private.h>
#include <pbl/services/notifications/notification_types.h>
#include <pbl/services/timeline/item.h>

Typedefs

typedef void(* ActionCompleteCallback) (bool succeeded, void *cb_data)
 Called when an action or batch of actions completes.
 

Enumerations

enum  TimelineItemActionSource {
  TimelineItemActionSourceModalNotification , TimelineItemActionSourceNotificationApp , TimelineItemActionSourceTimeline , TimelineItemActionSourceSendTextApp ,
  TimelineItemActionSourcePhoneUi
}
 Where an action was invoked from. More...
 

Functions

void timeline_actions_add_action_to_root_level (TimelineItemAction *action, ActionMenuLevel *root_level)
 Add an action to an action menu level.
 
ActionMenuLevel * timeline_actions_create_action_menu_root_level (uint8_t num_actions, uint8_t separator_index, TimelineItemActionSource source)
 Create the root level of a timeline action menu.
 
ActionMenu * timeline_actions_push_action_menu (ActionMenuConfig *base_config, WindowStack *window_stack)
 Create a timeline action menu and push it.
 
ActionMenu * timeline_actions_push_response_menu (TimelineItem *item, TimelineItemAction *reply_action, GColor bg_color, ActionMenuDidCloseCb did_close_cb, WindowStack *window_stack, TimelineItemActionSource source, bool standalone_reply)
 Create a reply menu from a response action and push it.
 
void timeline_actions_dismiss_all (NotificationInfo *notif_list, int num_notifications, ActionMenu *action_menu, ActionCompleteCallback dismiss_all_complete_callback, void *dismiss_all_cb_data)
 Invoke the dismiss action of several notifications and reminders.
 
void timeline_actions_invoke_action (const TimelineItemAction *action, const TimelineItem *pin, ActionCompleteCallback cb, void *cb_data)
 Invoke an action without an action menu.