Package 

Class Zendesk


  • 
    public final class Zendesk
    
                        

    Public entry point of the SDK. To use Zendesk out of the box you must call Zendesk.initialize first and once SuccessCallback is called the SDK instance will be available through Zendesk.instance.

    Zendesk.initialize(
        context = context,
        channelKey = "{your-channel-key}",
        successCallback = {
            // The initialization was successful
        },
        failureCallback = { cause ->
            // The initialization failed and "cause" is an optional "ZendeskError"
        }
    )

    After Zendesk.initialize completes successfully, calling Zendesk.instance will return an instance of Zendesk which you can use to perform SDK actions such as showing the conversation screen.

    Zendesk.instance.messaging.showMessaging(context)