Share via


CreationCallback<T> interface

An application implements a CreationCallback<T> and passes it to the appropriate method in ProtectedFileInputStream when creating a new protected stream.

Signature

public interface CreationCallback<T> extends ContextCallback

Methods

Name Description
getContext
Must return the current context in order to call context dependent operations. (e.g. accessing resources and opening UI elements)
onSuccess(T)
Called upon successful creation of a protected stream.
onFailure(ProtectionException)
Called upon failure to create a protected stream.
onCancel
Called when the operation is canceled.

Defined in

CreationCallback.java

Supported Platforms

Minimum supported OS version
Android 4.0.3 (API level 15)

Package

com.microsoft.rightsmanagement

Thread Safety

Members of this class are not guaranteed to be thread safe.