src-html.com.pusher.client.channel.PresenceChannel.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pusher-java-client Show documentation
Show all versions of pusher-java-client Show documentation
This is a Java client library for Pusher, targeted at core Java and Android.
Source code
001package com.pusher.client.channel;
002
003import java.util.Set;
004
005/**
006 * An object that represents a Pusher presence channel. An implementation of
007 * this interface is returned when you call
008 * {@link com.pusher.client.Pusher#subscribePresence(String)} or
009 * {@link com.pusher.client.Pusher#subscribePresence(String, PresenceChannelEventListener, String...)}
010 * .
011 */
012public interface PresenceChannel extends PrivateChannel {
013
014 /**
015 * Gets a set of users currently subscribed to the channel.
016 *
017 * @return The users.
018 */
019 Set<User> getUsers();
020
021 /**
022 * Gets the user that represents the currently connected client.
023 *
024 * @return A user.
025 */
026 User getMe();
027}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy