Updates a and simplifies examples, adds a new example v-js-interop-simple, renames v-js-interop to v-js-interop-app
The changes introduced changes bring a lot of improvements that and hopefully outweigh the updates they require. Nevertheless, my apologies for the inconvenience while updating.
The changes update and extend the V API. It makes changes and includes features to extend the libraries capabilities and make it simpler to use.
EventId
andJSArgs
that are used in the bind method https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L128result
to@return
. It now uses the newEventId
as argument. The JS result is now automatically encoded instead of needing to encode it into a json manually. https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L141copy
method for the newEventId
type that should be used if wanting to return a JS result form another thread. https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L165JSArgs
type to access arguments https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L165 https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L170 https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L175 https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L180 https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L185 https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L190 https://github.com/ttytm/webview/blob/0dd6b0b2f4ce2cfe7875321d069754709e592625/src/lib.v#L195v-js-interop-simple
, renamesv-js-interop
tov-js-interop-app
The changes introduced changes bring a lot of improvements that and hopefully outweigh the updates they require. Nevertheless, my apologies for the inconvenience while updating.