OTVWatermark
@interface OTVWatermark : NSObject
Integration Nexguard watermark support on iOS Platform.
-
Returns an instance of
OTVWatermarkthat will bind toUIViewto watermark. \param secret The specified secret used by QuickMark core.returns: An instance of
OTVWatermarkDeclaration
Objective-C
- (nullable instancetype)initWithSecret:(NSString *_Nonnull)secret; -
Returns an instance of
OTVWatermarkthat will bind toUIViewto watermark. \param url The specified url used by QuickMark core.\param token The specified token used by QuickMark core.
\param tenant The specified tenant used by QuickMark core.
\param secret The specified secret used by QuickMark core.
returns: An instance of
OTVWatermarkDeclaration
Objective-C
- (nullable instancetype)initWithUrl:(NSString *_Nonnull)url token:(NSString *_Nonnull)token tenant:(NSString *_Nonnull)tenant secret:(NSString *_Nonnull)secret; -
Set the specified token used by QuickMark core \param token The token for the QuickMark web view.
Declaration
Objective-C
- (void)setWithToken:(NSString *_Nonnull)token; -
Set the specified url used by QuickMark core \param url The url for the QuickMark web view.
Declaration
Objective-C
- (void)setWithUrl:(NSString *_Nonnull)url; -
Set the specified tenant used by QuickMark core \param tenant The tenant for the QuickMark web view.
Declaration
Objective-C
- (void)setWithTenant:(NSString *_Nonnull)tenant; -
Get the version of the QuickMark web view.
returns: A version string
Declaration
Objective-C
- (void)setWithApiKey:(NSString *_Nonnull)apiKey; -
Get the version of the QuickMark web view.
returns: A version string
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull quickmarkVersion; -
Get the core version of the QuickMark.
returns: A version string containing quickmarkCoreVersion
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nullable quickmarkCoreVersion; -
Bind a
UIViewwith QuickMark web view. \param playerViewUIViewas parent view.t\param playerLayer
AVPlayerLayerused byAVPlayerfor playback.Declaration
Objective-C
- (void)bindWithPlayerView:(UIView *_Nonnull)playerView playerLayer:(AVPlayerLayer *_Nonnull)playerLayer; -
Unbind with player’s view, stop watermark.
Declaration
Objective-C
- (void)unbind;
OTVWatermark Class Reference