OpenTV Player SDK For iOS  version 2.30.0
NMPWatermark Class Reference

Integration Nexguard watermark support on iOS Platform. More...

#import <NMPWatermark.h>

Inheritance diagram for NMPWatermark:

Instance Methods

(instancetype) - initWithSecret:
 Returns an instance of NMPWatermark that will bind to uiview to watermark. More...
 
(instancetype) - initWithUrl:withToken:withTenant:withSecret:
 Returns an instance of NMPWatermark that will bind to uiview to watermark. More...
 
(void) - setToken:
 Set the specified token used by QuickMark core. More...
 
(void) - setUrl:
 Set the specified url used by QuickMark core. More...
 
(void) - setTenant:
 set the specified tenant used by QuickMark core More...
 
(void) - setApiKey:
 Set the specified api key used by QuickMark core. More...
 
(NSString *) - quickmarkVersion
 Get the version of the QuickMark web view. More...
 
(NSString *) - quickmarkCoreVersion
 Get the core version of the QuickMark. More...
 
(void) - bind:withAVPlayerLayer:
 Bind a uiview with quickmark web view. More...
 
(void) - unbind
 Unbind with player's view, stop watermark. More...
 

Properties

id< NMPWatermarkDelegatedelegate
 delegate for receiving watermark message or error information. More...
 

Detailed Description

Integration Nexguard watermark support on iOS Platform.

Definition at line 24 of file NMPWatermark.h.

Method Documentation

◆ bind:withAVPlayerLayer:()

- (void) bind: (UIView *)  playView
withAVPlayerLayer: (AVPlayerLayer *)  layer 

Bind a uiview with quickmark web view.

Parameters
[in]playViewUIView as parent view.
[in]layerAVPlayerLayer used by AVPlayer for playback.

◆ initWithSecret:()

- (instancetype) initWithSecret: (NSString *)  secret

Returns an instance of NMPWatermark that will bind to uiview to watermark.

Parameters
[in]secretThe specified secret used by QuickMark core
Returns
An instance of NMPWatermark

◆ initWithUrl:withToken:withTenant:withSecret:()

- (instancetype) initWithUrl: (NSString *)  Url
withToken: (NSString *)  token
withTenant: (NSString *)  tenant
withSecret: (NSString *)  NS_DESIGNATED_INITIALIZER 

Returns an instance of NMPWatermark that will bind to uiview to watermark.

Parameters
[in]URLThe specified url used by QuickMark core.
[in]tokenThe specified token used by QuickMark core
[in]tenantThe specified tenant used by QuickMark core
[in]secretThe specified secret used by QuickMark core
Returns
An instance of NMPWatermark

◆ quickmarkCoreVersion()

- (NSString *) quickmarkCoreVersion

Get the core version of the QuickMark.

Returns
: A version string

◆ quickmarkVersion()

- (NSString *) quickmarkVersion

Get the version of the QuickMark web view.

Returns
: A version string

◆ setApiKey:()

- (void) setApiKey: (NSString *)  apiKey

Set the specified api key used by QuickMark core.

Parameters
[in]apiKeyThe API key for the QuickMark web view.
Note
: The API key is optionnal.

◆ setTenant:()

- (void) setTenant: (NSString *)  tenant

set the specified tenant used by QuickMark core

Parameters
[in]tenantThe tenant for the QuickMark web view.

◆ setToken:()

- (void) setToken: (NSString *)  token

Set the specified token used by QuickMark core.

Parameters
[in]tokenThe token for the QuickMark web view.

◆ setUrl:()

- (void) setUrl: (NSString *)  url

Set the specified url used by QuickMark core.

Parameters
[in]urlThe url for the QuickMark web view.

◆ unbind()

- (void) unbind

Unbind with player's view, stop watermark.

Property Documentation

◆ delegate

- (id<NMPWatermarkDelegate>) delegate
readwritenonatomicweak

delegate for receiving watermark message or error information.

Definition at line 31 of file NMPWatermark.h.