Integration
The integration flow between Rybená and applications is through the incorporation of a webview with facilitated commands to manipulate the application.
FUNCTIONING BY API
In integrations with applications, we understand that the way users interact with the system is quite diverse and dynamic, very different from the web scenario, where the user controls their actions through selections and clicks.
Therefore, we understand that the best way to deliver this integration is programmatically, so that each application tells Rybená when to translate and which text to translate. Thus, all API functions will be available in Rybená's webview.
Integration by embedding
In the integration by embedding, the source application incorporates the Rybená application within itself, that is, unlike the other solution, it is not necessary to open another application or have the Rybená application installed.
An example of how to implement this flow is:
- Create a Webview object (Great availability of this type of component in various mobile languages)
- Load the content https://repository.rybena.com.br/webview/index.html?token=ACCESS-TOKEN in the Webview
- Replace the value ACCESS-TOKEN with your authentication token
- Manipulate the size of Rybená
RybenaApi.getInstance().setSize(300)
- Open the Rybená player when convenient
RybenaApi.getInstance().openPlayer()
- Manipulate all available functionalities through the API Functions