OTVWatermark

public class OTVWatermark : NSObject

Integration Nexguard watermark support on iOS Platform.

  • Delegate for receiving watermark message or error information.

    Declaration

    Swift

    public weak var delegate: OTVWatermarkDelegate { get set }
  • Returns an instance of OTVWatermark that will bind to UIView to watermark.

    • Return instance: An instance of OTVWatermark

    Declaration

    Swift

    @objc
    public init?(secret: String)

    Parameters

    secret

    The specified secret used by QuickMark core.

  • Returns an instance of OTVWatermark that will bind to UIView to watermark.

    • Return instance: An instance of OTVWatermark

    Declaration

    Swift

    @objc
    public init?(url: String, token: String, tenant: String, secret: String)

    Parameters

    url

    The specified url used by QuickMark core.

    token

    The specified token used by QuickMark core.

    tenant

    The specified tenant used by QuickMark core.

    secret

    The specified secret used by QuickMark core.

  • Set the specified token used by QuickMark core

    Declaration

    Swift

    @objc
    public func set(token: String)

    Parameters

    token

    The token for the QuickMark web view.

  • Set the specified url used by QuickMark core

    Declaration

    Swift

    @objc
    public func set(url: String)

    Parameters

    url

    The url for the QuickMark web view.

  • Set the specified tenant used by QuickMark core

    Declaration

    Swift

    @objc
    public func set(tenant: String)

    Parameters

    tenant

    The tenant for the QuickMark web view.

  • Get the version of the QuickMark web view.

    • Return version: A version string

    Declaration

    Swift

    @objc
    public func set(apiKey: String)
  • Get the version of the QuickMark web view.

    • Return version: A version string

    Declaration

    Swift

    @objc
    public var quickmarkVersion: String { get }
  • Get the core version of the QuickMark.

    • Return quickmarkCoreVersion: A version string

    Declaration

    Swift

    @objc
    public var quickmarkCoreVersion: String? { get }
  • Bind a UIView with QuickMark web view.

    Declaration

    Swift

    @objc
    public func bind(playerView: UIView, playerLayer: AVPlayerLayer)

    Parameters

    playerView

    UIView as parent view.t

    playerLayer

    AVPlayerLayer used by AVPlayer for playback.

  • Unbind with player’s view, stop watermark.

    Declaration

    Swift

    @objc
    public func unbind()