PrintingStatusSubscription
PrintingStatusSubscription is a handler to a printing action which is "in progress". It allows for:
subscribing (and unsubscribing) to state changes
get information about the state (see PrintStateDetails)
Functions
Link copied to clipboard
abstract fun subscribe(@ObjCName(name = "printingListener") listener: PrintingStatusSubscription.Listener): PrintingStatusSubscription
Subscribes the listener to receive state change updates. Some states may be skipped by some implementations, don't assume that you'll get notified for each individual intermediate state.
Link copied to clipboard
abstract fun unsubscribe(@ObjCName(name = "printingListener") listener: PrintingStatusSubscription.Listener)
Unsubscribes the listener from receiving state change updates.
Link copied to clipboard
Calls unsubscribe for all current listeners.