setVolumeLevel

fun setVolumeLevel(percent: Int, mode: Int): Int

Changes the volume level for the specified stream

Return

Const.EXECUTE_COMPLETE - function completed

Const.INCORRECT_BRIGHTNESS_VALUE - The specified value is not supported by the function. Function failed

Parameters

percent

Volume value from 1 to 100

mode

Stream mode