Class GroupBase

    Definition

    Namespace:
    Tizen.Applications.Cion
    Assembly:
    Tizen.Applications.Cion.dll

    An abstract class to represent cion group.

    public abstract class GroupBase : IDisposable
    Inheritance
    object
    GroupBase

    Constructors

    View Source

    GroupBase(string, SecurityInfo)

    The constructor of GroupBase class.

    Declaration
    public GroupBase(string topicName, SecurityInfo security)
    Parameters
    Type Name Description
    string topicName

    The topic of group.

    SecurityInfo security

    The security configuration.

    Remarks

    The maximum length of topic name is 512.

    View Source

    GroupBase(string)

    The constructor of GroupBase class.

    Declaration
    public GroupBase(string topicName)
    Parameters
    Type Name Description
    string topicName

    The topic of group.

    Remarks

    The maximum length of topic name is 512.

    Properties

    View Source

    Topic

    Gets the topic of current cion group.

    Declaration
    public string Topic { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Dispose()

    Releases all resources used by the GroupBase class.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    If true, disposes any disposable objects. If false, does not dispose disposable objects.

    View Source

    OnJoined(PeerInfo)

    The callback invoked when another peer joined in the current group.

    Declaration
    protected abstract void OnJoined(PeerInfo peerInfo)
    Parameters
    Type Name Description
    PeerInfo peerInfo

    The peer info of joined in the current group.

    View Source

    OnLeft(PeerInfo)

    The callback invoked when another peer left from the current group.

    Declaration
    protected abstract void OnLeft(PeerInfo peerInfo)
    Parameters
    Type Name Description
    PeerInfo peerInfo

    The peer info of left from the current group.

    View Source

    OnPayloadReceived(Payload, PeerInfo)

    The callback invoked when payload received.

    Declaration
    protected abstract void OnPayloadReceived(Payload payload, PeerInfo peer)
    Parameters
    Type Name Description
    Payload payload
    PeerInfo peer
    View Source

    Publish(Payload)

    Publishes payload to current group.

    Declaration
    public void Publish(Payload payload)
    Parameters
    Type Name Description
    Payload payload

    The payload to publish.

    View Source

    Subscribe()

    Subscribes the topic.

    Declaration
    public void Subscribe()
    View Source

    Unsubscribe()

    Unsubscribes the topic.

    Declaration
    public void Unsubscribe()

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX