OrtcEnablePresence 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
Assembly: Ibt.Ortc.Api (in Ibt.Ortc.Api.dll) Version: 2.1.14.0 (2.1.14)
Syntax

public static void EnablePresence(
	string url,
	bool isCluster,
	string applicationKey,
	string privateKey,
	string channel,
	bool metadata,
	OnEnablePresenceDelegate callback
)

Parameters

url
Type: SystemString
Server containing the presence service.
isCluster
Type: SystemBoolean
Specifies if url is cluster.
applicationKey
Type: SystemString
Application key with access to presence service.
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

Ibt.Ortc.Api.Ortc.EnablePresence("http://ortc-developers.realtime.co/server/2.1", true, "myApplicationKey", "myPrivateKey", "presence-channel", false, (error, result) =>
{
    if (error != null)
    {
        Console.WriteLine(error.Message);
    }
    else
    {
        Console.WriteLine(result);
    }
});
See Also

Reference