Skip to content

registerWrappedClient ​

Register a host implementation for a specific game handle. The SDK calls its SUDOPWrappedClient methods when the game requests host functionality.

Declaration ​

java
public static void registerWrappedClient(SUDRTGameHandle handle, SUDOPWrappedClient client);
  • handle: The target game instance.
  • client: The host implementation of SUDOPWrappedClient.

Usage ​

After obtaining the game handle and implementing all required callbacks, register the host client:

java
SUDOP.registerWrappedClient(gameHandle, wrappedClient);

See SUDOPWrappedClient for all callback signatures and parameter types. Asynchronous operations report results through the supplied SUDOPStateHandle or SUDOPCommonStateHandle; synchronous callbacks return a value or populate the supplied object. Do not substitute a generic JSON/callback signature for these typed methods.

Perform view and window operations on the Android main thread. Report each request result once and release host UI resources when the game page closes.