Class SdkSession

java.lang.Object
com.digimarc.dms.session.SdkSession

public class SdkSession extends Object
A session object is required to use reader and resolver objects within the SDK.
  • Method Details

    • addSecureWatermarkReadinessObserver

      public void addSecureWatermarkReadinessObserver(@NonNull SecureWatermarkReadinessObserver observer)
      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 the SecureWatermarkReadinessObserver.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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object