PresenceEvent Class Reference - Twilio
Register for SIGNAL by 8/31 for $250 off. Register now.

PresenceEvent Class 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
  • Subclass of: Object

An object encapsulating client presence state for other clients connected to the Twilio Application.

Tasks

Name Description Type
getName The client name for which the event applies. Instance method
isAvailable Whether or not the client specified by name is currently connected to Twilio services for the account. Instance method

Methods

String getName()

The client name for which the event applies.

Return Value

A non-null string


boolean isAvailable()

Whether or not the client specified by name is currently connected to Twilio services for the account.

Return Value

true if the client is online, false if not

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.