RemotePresenceView Class

This class is used to fetch presence information for remote presentities from LocalEndpoint.

Inheritance Hierarchy

System.Object
  Microsoft.Rtc.Collaboration.Presence.RemotePresenceView

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Class RemotePresenceView
'Usage
Dim instance As RemotePresenceView
public class RemotePresenceView

Remarks

Choosing Polling results in each presentity's presence queried at fixed intervals specified by the PollingInterval parameter. The list of categories to poll for can be set using the method SetPresenceSubscriptionCategoriesForPolling(IEnumerable<String>).

Default results in the persistent subscription to presentities. The endpoint is then informed of any real-times changes to their presence information. In addition network optimizations are provided where if the subscription limit is reached on any presentity or the remote presentity is an automaton or a bot, then their presence is automatically polled for. This conserves network traffic and in the case of automatons, allow them to have more subscribers. Application who desire persistent subscription are strongly advised to use this mode.

Choosing Persistent is very similar to choosing Default except that the optimizations indicated in the end are not provided.

Multiple instances of RemotePresenceView can be created on an endpoint. The ApplicationContext can be used to differentiate one view from another. The same presentity can be added to different views and operations one each view is considered independent of other views.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RemotePresenceView Members

Microsoft.Rtc.Collaboration.Presence Namespace

RemotePresenceViewSettings

RemotePresenceViewSubscriptionMode

RemotePresence

PresenceServices

PresenceServices