toggleSubscriptionStatus

fun toggleSubscriptionStatus(context: Context?, statusChangedCallback: (newStatus: Boolean?) -> Unit? = null)

Toggles the subscription status of an item.

Parameters

context

The context to use for operations.

statusChangedCallback

A callback that is invoked when the subscription status changes. It provides the new subscription status (true if subscribed, false if unsubscribed, null if action was canceled).