Skip to main content

ILightingManager

ILightingManager

Description: Searchlight management class

method openLighting

fun openLighting(callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?)

Description: Open spotlight

Input parameters:

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None

method closeLighting

 fun closeLighting(callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?)

Description: Close spotlight

Input parameters:

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None

method getLightingStatus

 fun getLightingStatus(callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?)

Description: Get spotlight status

Input parameters:

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None

method setLightingBrightness

 fun setLightingBrightness(brightness: Int, callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?)

Description: Set the spotlight brightness

Input parameters:

brightness: brightness of spotlight, range: 0 - 100

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None

method getLightingBrightness

 fun getLightingBrightness(callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?)

Description: Get the spotlight brightness

Input parameters:

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None

method flashLighting

 fun flashLighting(
mode: Int,
callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?
)

Description: Set strobe light mode

Input parameters:

mode: strobe light mode,0 - close, default; 1 - light strobe; 2 - warnning light strobe

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None

method getFlashLightingMode

 fun getFlashLightingMode(callbackWithParam: CommonCallbacks.CompletionCallbackWithParam<Void>?)

Description: Get strobe light mode

Input parameters:

callbackWithParam: Return the callback of execution result

Output parameter: None

Related parameters: None