receiveCommand

open override fun receiveCommand(root: ReactViewGroup, commandId: String, args: ReadableArray?)

Subclasses may use this method to receive events/commands directly from JS through the . Good example of such a command would be scrollTo request with coordinates for a ReactScrollView instance.

Parameters

root

View instance that should receive the command

commandId

code of the command

args

optional arguments for the command


open override fun receiveCommand(root: ReactViewGroup, commandId: Int, args: ReadableArray?)

Deprecated

Use receiveCommand(View, String, ReadableArray)

Replace with

receiveCommand(root, commandIdString, args)

Subclasses may use this method to receive events/commands directly from JS through the . Good example of such a command would be scrollTo request with coordinates for a ScrollView instance.

This method is deprecated use receiveCommand instead.

Parameters

root

View instance that should receive the command

commandId

code of the command

args

optional arguments for the command