opacity([opacity])

Class: MediaPlayer.

Description:

Sets or gets component opacity float value between 0 and 1 inclusive.

Parameters:

Name Type Description

[opacity]

number

A number between 0 and 1 inclusive.

Returns:

If opacity argument is provided, this component is returned, otherwise opacity number is returned.

Type: number | this