Class SdkSession

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

public final class SdkSession extends Object
A session object is required to use reader and resolver objects within the SDK. When an SdkSession object is created it loads the license key stored in the application's manifest.
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • Builder

      @NonNull public static SdkSession.Builder Builder()
      Get a SdkSession.Builder object for creating a session. By default the license key will be loaded from the application's manifest. To add your license key to the manifest, create an entry similar to the following inside the <application> section.

      <meta-data android:name="com.digimarc.LicenseKey"
                 android:value="license-key-goes-here">
        

      The android:value="" entry can either contain your key string itself or it can contain an Android path to a string resource (i.e. "@string/license_key").

      Returns:
      A new SdkSession.Builder