TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

StartAction

StartAction(type, description)

Specifies the start action for long operations.

Parameters:

Name Type Description
type number

A value which defines an action type which can take 0 if this is an Information action or 1 if this is a BlockInteraction action.

description string

A string value that specifies the description text for the start action of the operation.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.executeMethod ("StartAction", ["Block", "Save to local storage..."], function () {
    setPasswordByFile ("sha256", "123456");

    setTimeout (function () {
        window.Asc.plugin.executeMethod ("EndAction", ["Block", "Save to localstorage..."]);
    }, 200););
});