public class StateWrapperImpl extends java.lang.Object implements StateWrapper
Modifier and Type | Method and Description |
---|---|
ReadableNativeMap |
getState()
Get a ReadableNativeMap object from the C++ layer, which is a K/V map of string keys to values.
|
void |
updateState(WritableMap map,
java.lang.Runnable failureCallback)
Pass a map of values back to the C++ layer.
|
void |
updateStateFailed(int callbackRefId) |
void |
updateStateImpl(NativeMap map) |
void |
updateStateWithFailureCallbackImpl(NativeMap map,
java.lang.Object self,
int updateStateId) |
public ReadableNativeMap getState()
StateWrapper
getState
in interface StateWrapper
public void updateStateImpl(NativeMap map)
public void updateStateWithFailureCallbackImpl(NativeMap map, java.lang.Object self, int updateStateId)
public void updateState(WritableMap map, java.lang.Runnable failureCallback)
StateWrapper
updateState
in interface StateWrapper
public void updateStateFailed(int callbackRefId)