Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Class Info |
|---|
public class MediaApplication UI SDK class that is used to globally call APIs. |
Qualifier and Type | Field and Description |
|---|---|
static final String | Authentication failure. |
static final String | The number of requests for the License ID for a day reaches the limit. |
static final String | Invalid parameter. |
static final int | Mode for starting the Video Editor Kit UI through a draft. |
static final int | Mode for starting the Video Editor Kit UI by importing a video or image. |
Constructor Name |
|---|
| UI SDK class that is used to globally call APIs. |
Qualifier and Type | Method Name and Description |
|---|---|
int | deleteDrafts(List<String> draftIds) Deletes a draft using its ID. |
List<DraftInfo> | Obtains the draft list. |
static MediaApplication | Obtains a singleton of the MediaApplication class. |
void | launchEditorActivity(Context context, VideoEditorLaunchOption option) Sets the mode for starting the Video Editor Kit UI. |
void | setAccessToken(String accessToken) Sets an access token for your app. |
void | setApiKey(String apiKey) Sets an API key for your app. |
void | setLicenseId(String licenseId) Sets a License ID. You're advised to ensure this ID is unique. |
void | setLicenseErrorMessage(Map<String, Integer> messageIds) Sets License ID error messages. |
void | setOnMediaExportCallBack(MediaExportCallBack callBack) Sets the callback for video export. |
Field |
|---|
public static final String AUTH_ERROR Authentication failure. Constant value: "10103" |
Field |
|---|
public static final String DAY_REQUEST_OVER_LIMIT The number of requests for the License ID for a day reaches the limit. Constant value: "10108" |
Field |
|---|
public static final String PARAM_ERROR Invalid parameter. Constant value: "10104" |
Field |
|---|
public static final int START_MODE_IMPORT_FROM_DRAFT Mode for starting the Video Editor Kit UI through a draft. Constant value: 2 |
Field |
|---|
public static final int START_MODE_IMPORT_FROM_MEDIA Mode for starting the Video Editor Kit UI by importing a video or image. Constant value: 1 |
Constructor |
|---|
public MediaApplication() UI SDK class that is used to globally call APIs. |
Method |
|---|
public int deleteDrafts(List<String> draftIds) Deletes a draft using its ID. |
Name | Description |
|---|---|
draftIds | List of drafts to be deleted. |
Type | Description |
|---|---|
int | Number of drafts that are successfully deleted. |
Method |
|---|
public List<DraftInfo> getDraftList() Obtains the draft list. |
Type | Description |
|---|---|
List<DraftInfo> | Draft list. |
Method |
|---|
public static MediaApplication getInstance() Obtains a singleton of the MediaApplication class. |
Type | Description |
|---|---|
MediaApplication | Instance of the MediaApplication class. |
Method |
|---|
public void launchEditorActivity(Context context, VideoEditorLaunchOption option) Sets the mode for starting the Video Editor Kit UI. |
Parameters
Name | Description |
|---|---|
context | Context. |
option | Option of the start mode. |
Method |
|---|
public void setAccessToken(String accessToken) Sets an access token for your app. |
Name | Description |
|---|---|
accessToken | Access token of your app. |
Method |
|---|
public void setApiKey(String apiKey) Sets an API key for your app. |
Name | Description |
|---|---|
apiKey | API key of your app. |
Method |
|---|
public void setLicenseId(String licenseId) Sets a License ID. You're advised to ensure this ID is unique. |
Name | Description |
|---|---|
licenseId | Unique License ID. |
Method |
|---|
public void setLicenseErrorMessage(Map<String, Integer> messageIds) Sets License ID error messages by using the following result codes as keys and message resource IDs as values: |
Name | Description |
|---|---|
messageIds | Message resource IDs. |
Method |
|---|
public void setOnMediaExportCallBack(MediaExportCallBack callBack) Sets the callback for video export. |
Name | Description |
|---|---|
callBack | Instance of the callback for video export. |