WebExtensionCollection

WebExtensionCollection class

Represents the list of web extension.

class WebExtensionCollection;

Methods

MethodDescription
get(number)Gets web extension by the specific index.
add()Adds a web extension.
addWebVideoPlayer(string, boolean, number, number)Add a web video player into exel.
removeAt(number)Remove web extension by the index.
getCount()Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

get(number)

Gets web extension by the specific index.

get(index: number) : WebExtension;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

The web extension.

add()

Adds a web extension.

add() : number;

Returns

The index.

addWebVideoPlayer(string, boolean, number, number)

Add a web video player into exel.

addWebVideoPlayer(url: string, autoPlay: boolean, startTime: number, endTime: number) : number;

Parameters:

ParameterTypeDescription
urlstring
autoPlaybooleanIndicates whether auto playing the video.
startTimenumberThe start time in unit of seconds.
endTimenumberThe end time in unit of seconds.

removeAt(number)

Remove web extension by the index.

removeAt(index: number) : void;

Parameters:

ParameterTypeDescription
indexnumberThe index.

getCount()

Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;