Package 

Object OrigonClient.Companion

    • Method Detail

      • clearAllChatCaches

         final Unit clearAllChatCaches(Context context)

        Synchronously quarantines the SDK-owned cache subtree. Close every live client before calling; physical deletion may finish asynchronously.

      • initLogging

         final Unit initLogging(String filter)

        Install the global tracing subscriber. Idempotent — only the first call installs; subsequent calls are no-ops.

        filter accepts RUST_LOG-style directives. Pass null for the SDK default.

      • registerForPushNotifications

         final Unit registerForPushNotifications(String token)

        Register this device's FCM token for push notifications.

        Safe to call before an OrigonClient exists — the token is buffered and sent once a client is created — and repeatedly (e.g. from FirebaseMessagingService.onNewToken), where the latest token wins. Returns immediately and performs the network request on a background thread; failures are logged, not thrown (FCM delivers tokens through a fire-and-forget callback, so there is no caller to surface an error to).

      • unregisterForPushNotifications

         final Unit unregisterForPushNotifications()

        Remove this device's push registration for the current user.

        Clears any buffered token so a later client won't re-register. Returns immediately; failures are logged. Typically called on logout.