Twilio.InitListener Interface Reference - Twilio
Register for SIGNAL by 8/31 for $250 off. Register now.

Twilio.InitListener Interface Reference

Deprecation Notice

The Twilio Client SDK for Android has been deprecated and replaced by Twilio's Programmable Voice SDK.

The Programmable Voice SDK offers many improvements over the Twilio Client SDK, including greater stability, improved backgrounding, and built-in support for push notifications for incoming calls.

 

If you're just getting started with a Twilio mobile application for voice calling, we recommend you use the Programmable Voice SDK. If you're already using the Twilio Client SDK, you should plan to upgrade to the Programmable Voice SDK as soon as you're able.

Get started with the new Programmable Voice SDK by checking out the quickstart for Programmable Voice SDK for Android on Github.

Overview

  • Package: com.twilio.client

Interface for the listener object to pass to Twilio.initialize().

Tasks

Name Description Type
onInitialized Called when the Twilio Client SDK has been successfully initialized. Instance method
onError Called if there is an error initializing the Twilio Client SDK. Instance method

Methods

void onInitialized()

Called when the Twilio Client SDK has been successfully initialized.

Return Value

None

void onError(Exception error)

Called if there is an error initializing the Twilio Client SDK.

Parameters
Name Description
error An exception describing the error that occurred
Return Value

None

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.