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()
StateWrappergetState in interface StateWrapperpublic void updateStateImpl(NativeMap map)
public void updateStateWithFailureCallbackImpl(NativeMap map, java.lang.Object self, int updateStateId)
public void updateState(WritableMap map, java.lang.Runnable failureCallback)
StateWrapperupdateState in interface StateWrapperpublic void updateStateFailed(int callbackRefId)