C# / .Net API Library Reference  4.3.2-74-ge1d4cca
Public Functions
IAllowSesssionRenderOrResize Interface Reference

The IAllowSessionRenderOrResize is a policy interface used by 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

bool AllowRender (Guid sessionId, string viewName)
 
bool AllowResize (Guid sessionId, string viewName)
 

Usage Description

bool AllowRender ( Guid  sessionId,
string  viewName 
)

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-renders 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 DefaultAllowSesssionRenderOrResize.

bool AllowResize ( Guid  sessionId,
string  viewName 
)

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 DefaultAllowSesssionRenderOrResize.