subclasses of viewmanager that expect to receive commands through uimanagermodule #dispatchviewmanagercommand should override this method returning themap between names of the commands and ids that are then used in #receivecommand methodwhenever the command is dispatched for this particular viewmanager . as an example we may consider reactwebviewmanager that expose the following commands : goback , goforward , reload . in this case the map returned from #getcommandsmap from reactwebviewmanager will look as follows :{ `` goback '' : 1 , `` goforward '' : 2 , `` reload '' : 3 , now assuming that `` reload '' command is dispatched through uimanagermodule we trigger reactwebviewmanager #receivecommand passing `` 3 '' as commandid argument . concode_field_sep PlaceHolder placeHolder concode_field_sep Map<String,String> getNativeProps concode_elem_sep Map<String,Object> getExportedViewConstants concode_elem_sep String getName concode_elem_sep void onAfterUpdateTransaction concode_elem_sep void addEventEmitters concode_elem_sep void receiveCommand concode_elem_sep Class<? extends C> getShadowNodeClass concode_elem_sep void updateExtraData concode_elem_sep void onDropViewInstance concode_elem_sep C createShadowNodeInstance concode_elem_sep Map<String,Object> getExportedCustomDirectEventTypeConstants concode_elem_sep T createViewInstance concode_elem_sep void updateProperties concode_elem_sep T createView concode_elem_sep Map<String,Object> getExportedCustomBubblingEventTypeConstants
Map < String , Integer > function ( ) { return null ; }