OrtcClientEnablePresence Method Open Real Time Connectivity Application Programming Interface Help
Enables presence for the specified channel with first 100 unique metadata if metadata is set to true.

Namespace: Ibt.Ortc.Api.Extensibility
Assembly: Ibt.Ortc.Api.Extensibility (in Ibt.Ortc.Api.Extensibility.dll) Version: 2.1.14.0 (2.1.14)
Syntax

public abstract void EnablePresence(
	string privateKey,
	string channel,
	bool metadata,
	OnEnablePresenceDelegate callback
)

Parameters

privateKey
Type: SystemString
The private key provided when the ORTC service is purchased.
channel
Type: SystemString
Channel to activate presence.
metadata
Type: SystemBoolean
Defines if to collect first 100 unique metadata.
callback
Type: Ibt.Ortc.Api.ExtensibilityOnEnablePresenceDelegate
Callback with error OrtcPresenceException and result.
Examples

client.EnablePresence("myPrivateKey", "presence-channel", false, (error, result) =>
{
    if (error != null)
    {
        Console.WriteLine(error.Message);
    }
    else
    {
        Console.WriteLine(result);
    }
});
See Also

Reference