ChannelDelegate
protocol ChannelDelegate : NSObjectProtocol
Channelイベントデリゲート
-
このChannelが閉じられた時に発生するイベント
Declaration
Swift
optional func channelDidClose(_ channel: Channel)
Parameters
channel
Channel
-
このChannelのMetadataが更新された時に発生するイベント
Declaration
Swift
optional func channel(_ channel: Channel, didUpdateMetadata metadata: String)
Parameters
channel
Channel
metadata
Metadata
-
このChannelに参加しているMemberの数が変化した時に発生するイベント
channel(_:memberDidJoin:)
またはchannel(_:memberDidLeave:)
がコールされた後にコールされます。Declaration
Swift
optional func channelMemberListDidChange(_ channel: Channel)
Parameters
channel
Channel
-
このChannelのPublicationの数が変化した時に発生するイベント
channel(_:didPublishStreamOfPublication:)
またはchannel(_:didUnpublishStreamOfPublication:)
がコールされた後にコールされます。Declaration
Swift
optional func channelPublicationListDidChange(_ channel: Channel)
Parameters
channel
Channel
-
このChannelにStreamがPublishされた時に発生するイベント
Declaration
Swift
optional func channel(_ channel: Channel, didPublishStreamOf publication: Publication)
Parameters
channel
Channel
publication
対象のPublication
-
このChannelにStreamがUnpublishされた時に発生するイベント
Declaration
Swift
optional func channel(_ channel: Channel, didUnpublishStreamOf publication: Publication)
Parameters
channel
Channel
publication
対象のPublication
-
このChannelのPublicationが
Enabled
状態に変更された時に発生するイベントDeclaration
Swift
optional func channel(_ channel: Channel, publicationDidChangeToEnabled publication: Publication)
Parameters
channel
Channel
publication
対象のPublication
-
このChannelのPublicationが
Disabled
状態に変更された時に発生するイベントDeclaration
Swift
optional func channel(_ channel: Channel, publicationDidChangeToDisabled publication: Publication)
Parameters
channel
Channel
publication
対象のPublication
-
このChannelのPublicationのMetadataが更新された時に発生するイベント
Declaration
Swift
optional func channel(_ channel: Channel, publication: Publication, metadataDidUpdate metadata: String)
Parameters
channel
Channel
publication
対象のPublication
metadata
Metadata
-
StreamがSubscribeまたはUnsubscribeされた時に発生するイベント
channel(_:didSubscribeStreamOf:)
またはchannel(_:UnsubscribeStreamOf:)
がコールされた後にコールされます。Declaration
Swift
optional func channelSubscriptionListDidChange(_ channel: Channel)
Parameters
channel
Channel
-
StreamがSubscribeされた時に発生するイベント
Declaration
Swift
optional func channel(_ channel: Channel, didSubscribePublicationOf subscription: Subscription)
Parameters
channel
Channel
subscription
対象のSubscription LocalPersonによるSubscribeである場合、まだstreamがsetされていない可能性があります。
-
StreamがUnsubscribeされた時に発生するイベント
Declaration
Swift
optional func channel(_ channel: Channel, didUnsubscribePublicationOf subscription: Subscription)
Parameters
channel
Channel
subscription
対象のSubscription