public class

ChannelCapture

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

Class Overview

ChannelCapture checks the device clipboard for a String that is prefixed by an expected token on app foreground and posts a notification that allows the user to copy the Channel or optionally open a url with the channel as an argument.

Summary

Public Methods
void disable()
Disable channel capture.
void enable(long duration, TimeUnit unit)
Enable channel capture for the specified period of time.
Protected Methods
void init()
Initialize the manager.
void tearDown()
Tear down the manager.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void disable ()

Disable channel capture.

public void enable (long duration, TimeUnit unit)

Enable channel capture for the specified period of time.

Parameters
duration The duration of time.
unit The time unit.

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.