Package-level declarations

The primary entry point is PushwooshLiveUpdates. Use endLiveUpdate to dismiss one Live Update by its activityId when the app knows the activity has finished before the server's end push, endAllLiveUpdates to clear everything currently shown (for example on logout), and getActiveIds to reconcile app state with what is on screen. All methods are safe to call from any thread.

To customize how a Live Update looks, implement LiveUpdateProgressStyleProvider and register it in AndroidManifest.xml via the com.pushwoosh.LIVE_UPDATE_STYLE_PROVIDER meta-data key. Its single createStyle method is invoked once per start / update render, on a worker thread, and must be stateless — derive the returned Notification.ProgressStyle only from the supplied state. If it throws, the SDK falls back to the default style and the notification still posts.

LiveUpdateState is the immutable snapshot handed to createStyle: it carries the Live Update's identity and lifecycle (LiveUpdateOperation), its title and subtitle, progress value with its LiveUpdateSegment breakdown, large-icon URL, notification actions, and an arbitrary JSON extras object — the primary channel for custom business data. LiveUpdateOperation distinguishes the START, UPDATE, and END phases of the lifecycle. LiveUpdateSegment describes one colored phase of a multi-segment progress bar.

Types

Link copied to clipboard
The lifecycle operation carried by a Live Update push, available via getOperation.
Link copied to clipboard
The single customization point for Pushwoosh Live Updates: supply the Notification.ProgressStyle used to render a live-update notification.
Link copied to clipboard
A single phase in a Live Update progress bar.
Link copied to clipboard
Immutable snapshot of a Live Update, parsed from a single push payload.
Link copied to clipboard
Entry point for controlling Pushwoosh Live Updates that are already on screen.