UAChannelCapture

@interface UAChannelCapture : NSObject

ChannelCapture checks the device clipboard for an expected token on app foreground and displays an alert that allows the user to copy the Channel or optionally open a url with the channel as an argument.

  • Enable channel capture for a specified duration.

    Declaration

    Objective-C

    - (void)enable:(NSTimeInterval)duration;

    Swift

    func enable(_ duration: TimeInterval)

    Parameters

    duration

    The length of time to enable channel capture for, in seconds.

  • Disable channel capture.

    Declaration

    Objective-C

    - (void)disable;

    Swift

    func disable()