API for the application to modify its glance.
Add a slice to the app's glance. This function will only succeed if called with a valid AppGlanceReloadSession that is provided in an AppGlanceReloadCallback.
The session variable provided in an AppGlanceReloadCallback
The slice to add to the app's glance
The result of trying to add the slice to the app's glance
The function app_glance_add_slice does not exist in SDK 4.
Clear any existing slices in the app's glance and trigger a reload via the provided callback.
A function that will be called to add new slices to the app's glance; even if the provided callback is NULL, any existing slices will still be cleared from the app's glance
User-provided context that will be passed to the callback
The function app_glance_reload does not exist in SDK 4.
An app's glance can change over time as defined by zero or more app glance slices that each describe the state of the app glance at a particular point in time. Slices are displayed in the order they are added, and they are removed at the specified expiration time.
Describes how the slice should be visualized in the app's glance in the launcher.
The UTC time after which this slice should no longer be shown in the app's glance. Use APP_GLANCE_SLICE_NO_EXPIRATION if the slice should never expire.
The struct AppGlanceSlice does not exist in SDK 4.
Bitfield enum describing the result of trying to add an AppGlanceSlice to an app's glance.
The slice was successfully added to the app's glance.
The subtitle_template_string provided in the slice was invalid.
The subtitle_template_string provided in the slice was longer than 150 bytes.
The icon provided in the slice was invalid.
The provided slice would exceed the app glance's slice capacity.
The expiration_time provided in the slice expires in the past.
The AppGlanceReloadSession provided was invalid.
The enum AppGlanceResult does not exist in SDK 4.
The ID of a published app resource defined within the publishedMedia section of package.json.
The typedef PublishedId does not exist in SDK 4.
The typedef AppGlanceReloadSession does not exist in SDK 4.
User-provided callback for reloading the slices in the app's glance.
A session variable that must be passed to app_glance_add_slice when adding slices to the app's glance; it becomes invalid when the AppGlanceReloadCallback returns
The number of entries that can be added to the app's glance
User-provided context provided when calling app_glance_reload()
The typedef AppGlanceReloadCallback does not exist in SDK 4.
Can be used for the expiration_time of an AppGlanceSlice so that the slice never expires.
The define APP_GLANCE_SLICE_NO_EXPIRATION does not exist in SDK 4.
Can be used for the icon of an AppGlanceSlice so that the slice displays the app's default icon.
The define APP_GLANCE_SLICE_DEFAULT_ICON does not exist in SDK 4.
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can join us on the Discord!