public class

ChannelCapture

extends AirshipComponent
java.lang.Object
   ↳ com.urbanairship.AirshipComponent
     ↳ com.urbanairship.ChannelCapture

Class Overview

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:.

Summary

[Expand]
Inherited Fields
From class com.urbanairship.AirshipComponent
Public Methods
boolean isEnabled()
Returns true if channel capture is enabled, channelCaptureEnabled is set to true, otherwise false.
void setEnabled(boolean enabled)
Sets channel capture enabled
Protected Methods
void init()
Initialize the manager.
void tearDown()
Tear down the manager.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean isEnabled ()

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

Returns
  • true if channel capture is enabled, otherwise false.

public void setEnabled (boolean enabled)

Sets channel capture enabled

Parameters
enabled true to enable channel capture, false to disable.

Protected Methods

protected void init ()

Initialize the manager. Called in UAirship during takeoff.

protected void tearDown ()

Tear down the manager. Called in UAirship during land.