C++ API Library Reference  4.3.2-74-ge1d4cca
Public Functions | List of all members
IAllowSessionRenderOrResize Class Referenceabstract

IAllowSessionRenderOrResize is a policy interface used by the ViewManager to determine whether a non-owner collaboration session is allowed to render or resize service-side views. It is only used when it is necessary to override PureWeb's default behavior.

Public Functions

virtual bool AllowRender (Guid sessionId, String viewName)=0
 
virtual bool AllowResize (Guid sessionId, String viewName)=0
 
Constructors and Destructors
virtual ~IAllowSessionRenderOrResize ()
 

Usage Description

virtual bool AllowRender ( Guid  sessionId,
String  viewName 
)
pure virtual

Determines if a collaboration session can render the service-side view; this is true by default.

In other words, normally the client application of collaboration participants re-render the views. To change this default behavior so that the client displays a copy of the view from the owner session, implement this method so that it will return false.

Parameters
sessionIdThe ID of the collaboration participant session which will do the render.
viewNameThe name of the view to render.

Implemented in DefaultAllowSessionRenderOrResize.

virtual bool AllowResize ( Guid  sessionId,
String  viewName 
)
pure virtual

Determines if a collaboration session can resize the service-side view; this is false by default.

In other words, the size of the view on the collaboration host normally determines the size of the view on the service, and consequently the size of the view for the collaboration participants. If you want to change this default behavior so that when a given collaboration participant resizes the view on the client, the service-side view is also resized, implement this method so that it will return true.

Parameters
sessionIdThe ID of the collaboration participant session which is resizing the view.
viewNameThe name of the view being resized.

Implemented in DefaultAllowSessionRenderOrResize.