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
OTVWatermarkthat will bind toUIViewto watermark.Declaration
Swift
@objc public init?(secret: String)Parameters
secretThe specified secret used by QuickMark core.
Return Value
An instance of
OTVWatermark -
Returns an instance of
OTVWatermarkthat will bind toUIViewto watermark.Declaration
Swift
@objc public init?(url: String, token: String, tenant: String, secret: String)Parameters
urlThe specified url used by QuickMark core.
tokenThe specified token used by QuickMark core.
tenantThe specified tenant used by QuickMark core.
secretThe specified secret used by QuickMark core.
Return Value
An instance of
OTVWatermark -
Set the specified token used by QuickMark core
Declaration
Swift
@objc public func set(token: String)Parameters
tokenThe token for the QuickMark web view.
-
Set the specified url used by QuickMark core
Declaration
Swift
@objc public func set(url: String)Parameters
urlThe url for the QuickMark web view.
-
Set the specified tenant used by QuickMark core
Declaration
Swift
@objc public func set(tenant: String)Parameters
tenantThe tenant for the QuickMark web view.
-
Get the version of the QuickMark web view.
Declaration
Swift
@objc public func set(apiKey: String)Return Value
A version string
-
Get the version of the QuickMark web view.
Declaration
Swift
@objc public var quickmarkVersion: String { get }Return Value
A version string
-
Get the core version of the QuickMark.
Declaration
Swift
@objc public var quickmarkCoreVersion: String? { get }Return Value
A version string containing quickmarkCoreVersion
-
Bind a
UIViewwith QuickMark web view.Declaration
Swift
@objc public func bind(playerView: UIView, playerLayer: AVPlayerLayer)Parameters
playerViewUIViewas parent view.tplayerLayerAVPlayerLayerused byAVPlayerfor playback. -
Unbind with player’s view, stop watermark.
Declaration
Swift
@objc public func unbind()
OTVWatermark Class Reference