API for the application to modify its glance.
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.
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 ID of a published app resource defined within the publishedMedia section of package.json.
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()
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()
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, which cannot happen on SDK 3, so it will always return APP_GLANCE_RESULT_INVALID_SESSION.
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
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
Clear any existing slices in the app's glance and trigger a reload via the provided callback. Does nothing on SDK 3.
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
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
Can be used for the expiration_time of an AppGlanceSlice so that the slice never expires.
Can be used for the icon of an AppGlanceSlice so that the slice displays the app's default icon.
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 send us a message through the website!