Package com.digimarc.dms.session
Class SdkSession
java.lang.Object
com.digimarc.dms.session.SdkSession
A session object is required to use reader and resolver objects within the SDK.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Set an observer for readiness messages for digital watermarks that require certificates.boolean
int
hashCode()
void
Reload watermarks that require certificates for the current session if previous attempts weren't successful.void
Remove an observer for reading messages for digital watermarks that require certificates.
-
Method Details
-
addSecureWatermarkReadinessObserver
Set an observer for readiness messages for digital watermarks that require certificates. The observer will receive status messages during initialization. Watermarks that require certificates cannot be read until after theSecureWatermarkReadinessObserver.onReady()
callback is received. Note that reading and resolving watermarks that require certificates is tightly coupled with the application's license key. Use of more than one license key in an application might cause errors when resolving those watermarks. If the app needs to change license keys at runtime, make sure that all resolver objects are re-created using a new session with the license key.- Parameters:
observer
- observer that will receive events
-
removeSecureWatermarkReadinessObserver
public void removeSecureWatermarkReadinessObserver(@NonNull SecureWatermarkReadinessObserver observer) Remove an observer for reading messages for digital watermarks that require certificates.- Parameters:
observer
- previously setup observer
-
reloadSecureWatermark
public void reloadSecureWatermark()Reload watermarks that require certificates for the current session if previous attempts weren't successful. -
equals
-
hashCode
public int hashCode()
-