IJSValueWriter
IJSValueWriter
is used to read data from JavaScript in custom NativeModules. It acts as a stream.
IJSValueWriter
supports the following types:
enum JSValueType {
Null,
Object,
Array,
String,
Boolean,
Int64,
Double,
};
Reference
Methods
WriteNull()
void WriteNull()
Write a null value.
WriteBoolean()
void WriteBoolean(bool value);
Write a boolean value.
WriteInt64()
void WriteInt64(int64 value);
Write a number value from an integer.
WriteDouble()
void WriteDouble(double value);
Write a number value from a double.
WriteString()
void WriteString(string value);
Write a string value.
WriteObjectBegin()
void WriteObjectBegin();
Start writing an object.
WritePropertyName()
void WritePropertyName(String name);
Write a property within an object. This should then be followed by writing the value of that property.
WriteObjectEnd()
void WriteObjectEnd();
Complete writing an object.
WriteArrayBegin()
void WriteArrayBegin();
Start writing an array.
WriteArrayEnd()
void WriteArrayEnd();
Complete writing an array.
Delegates
JSValueArgWriter
delegate void JSValueArgWriter(IJSValueWriter writer);
Use this delegate to pass arbitrary value to ABI API.
In a function that implements the delegate use the provided writer to stream custom values.