Package com.digimarc.dms
Class SdkSession.Builder
java.lang.Object
com.digimarc.dms.SdkSession.Builder
- Enclosing class:
- SdkSession
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a SdkSession using the configuration within the Builder.Set a listener for Secure Digital Watermark readiness messages.protected SdkSession.Builder
setFeatureKey
(String key) setLicenseKey
(String key) Set the license key.
-
Method Details
-
setLicenseKey
Set the license key. This is an alternate method for specifying a license key. Use of the manifest for the key is strongly recommended.- Parameters:
key
- License key- Returns:
- Builder object
-
setFeatureKey
-
build
Build a SdkSession using the configuration within the Builder.- Returns:
- A new SdkSession object.
-
setEnableSecureWatermarks
@NonNull public SdkSession.Builder setEnableSecureWatermarks(SecureWatermarkReadinessListener listener) Set a listener for Secure Digital Watermark readiness messages. Reading of Digimarc Secure Digital Watermarks is disabled if a listener is not supplied. The listener will receive status messages during initialization. Secure watermarks cannot be read until after theSecureWatermarkReadinessListener.onSuccess()
callback is received.Creating a new session object will entirely replace any existing session. The secure listener (if set) will be cleared, and if no secure listener is configured for the new session secure watermark reading will be disabled across the application.
Note that Secure Digital Watermark reading and resolving is tightly coupled with the application's license key. Use of more than one license key in an application may cause errors when resolving secure digital watermarks. If the app needs to change license keys at runtime make sure that all resolver objects are recreated using the new license key.
- Parameters:
listener
- Listener- Returns:
- Builder
-