Package com.digimarc.dms.resolver
Class Resolver
java.lang.Object
com.digimarc.dms.resolver.Resolver
The Resolver class uses the Digimarc Resolver backend to turn payloads into content data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class used to construct a new Resolver object.static enum
Error codes that may be sent to theResolveListener.onError(Payload, ResolveError)
method. -
Method Summary
Modifier and TypeMethodDescriptionstatic Resolver.Builder
Builder
(SdkSession sdkSession) Get Builder for creating a new Resolvervoid
release()
Cleans up the resolver.void
Begin an asynchronous resolve operation for the given payload.void
start()
Starts the resolver.void
stop()
Stop the resolver.
-
Method Details
-
Builder
Get Builder for creating a new Resolver- Parameters:
sdkSession
- SdkSession object initialized with a valid license key.- Returns:
- Builder
-
release
public void release()Cleans up the resolver. This should be performed in your application's onDestroy method. Problems may occur if the resolver is not cleaned up when the application closes. -
start
public void start()Starts the resolver. This should be called in your application's onResume method. -
stop
public void stop()Stop the resolver. This should be performed in your application's onPause method. Problems may occur if the resolver is not stopped when the application closes or goes to the background. -
resolve
Begin an asynchronous resolve operation for the given payload. The call will return immediately, and any resolve data or errors will be received via theResolveListener.onPayloadResolved(ResolvedContent)
andResolveListener.onError(Payload, ResolveError)
methods.- Parameters:
payload
- Payload to resolve.
-