Skip to content

@capgo/capacitor-live-activities

Capacitor Live Activities Plugin interface for managing iOS Live Activities.

Capacitor Live Activities Plugin interface for managing iOS Live Activities.

  • areActivitiesSupported - Check if Live Activities are supported on this device. Requires iOS 16.1+ and device support.
  • startActivity - Start a new Live Activity with the specified layout and data.
  • updateActivity - Update an existing Live Activity with new data.
  • endActivity - End a Live Activity.
MethodDescription
areActivitiesSupportedCheck if Live Activities are supported on this device. Requires iOS 16.1+ and device support.
startActivityStart a new Live Activity with the specified layout and data.
updateActivityUpdate an existing Live Activity with new data.
endActivityEnd a Live Activity.
getAllActivitiesGet all currently active Live Activities.
saveImageSave an image to the shared App Group container for use in Live Activities. Images must be saved to the shared container to be accessible from the widget extension.
removeImageRemove a saved image from the shared container.
listImagesList all saved images in the shared container.
cleanupImagesRemove all saved images from the shared container.
getPluginVersionGet the native Capacitor plugin version.
startTimerSequenceStart a timer sequence for workouts/sports. On iOS: Shows in Live Activity and Dynamic Island On Android: Shows as a foreground notification with timer.
pauseTimerSequencePause the timer sequence.
resumeTimerSequenceResume a paused timer sequence.
stopTimerSequenceStop and dismiss the timer sequence.
skipTimerStepSkip to the next step in the sequence.
previousTimerStepGo back to the previous step in the sequence.
getTimerStateGet the current state of a timer sequence.
addListenerAdd a listener for timer sequence events. Events include: stepChange, complete, tick, paused, resumed, stopped, loopComplete.

This reference is synced from src/definitions.ts in capacitor-live-activities.