com.pubnub.api.v2.entities.BaseChannelMetadata.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub-core-api Show documentation
Show all versions of pubnub-core-api Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter second!
The newest version!
package com.pubnub.api.v2.entities
import com.pubnub.api.v2.callbacks.BaseEventListener
import com.pubnub.api.v2.subscriptions.BaseSubscription
import com.pubnub.api.v2.subscriptions.SubscriptionOptions
interface BaseChannelMetadata> : Subscribable {
/**
* The id for this channel metadata object.
*
* See more in the [documentation](https://www.pubnub.com/docs/general/metadata/channel-metadata)
*/
val id: String
/**
* Returns a [Subscription] that can be used to subscribe to this channel metadata.
*
* [com.pubnub.api.v2.subscriptions.SubscriptionOptions.filter] can be used to filter events delivered to the subscription.
*
* @param options optional [SubscriptionOptions].
* @return an inactive [Subscription] to this channel metadata. You must call [Subscription.subscribe] to start receiving events.
*/
override fun subscription(options: SubscriptionOptions): Sub
}