ChannelCapture

class ChannelCapture @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(context: Context, configOptions: AirshipConfigOptions, airshipChannel: AirshipChannel, preferenceDataStore: PreferenceDataStore, activityMonitor: ActivityMonitor, dispatcher: CoroutineDispatcher = AirshipDispatchers.IO) : AirshipComponent(source)

ChannelCapture detects a knock when the application is foregrounded 6 times in 30 seconds. When a knock is detected, it writes the channel ID to the clipboard as ua:.

Constructors

Link copied to clipboard
constructor(context: Context, configOptions: AirshipConfigOptions, airshipChannel: AirshipChannel, preferenceDataStore: PreferenceDataStore, activityMonitor: ActivityMonitor, dispatcher: CoroutineDispatcher = AirshipDispatchers.IO)

Properties

Link copied to clipboard

Returns true if channel capture is enabled, com.urbanairship.AirshipConfigOptions.channelCaptureEnabled is set to true, otherwise false.

Inherited properties

Link copied to clipboard
protected val defaultExecutor: Executor

Default job executor.