C# / .Net API Library Reference  4.3.2-74-ge1d4cca
Public Functions
DefaultAllowSesssionRenderOrResize Class Reference

DefaultAllowSessionRenderOrResize is the default implementation of IAllowSessionRenderOrResize. It allows owner and non-owner sessions to render service-side views, but only owner sessions to resize them.

Public Functions

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

Usage Description

bool AllowRender ( Guid  sessionId,
string  viewName 
)
inline

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.

Implements IAllowSesssionRenderOrResize.

bool AllowResize ( Guid  sessionId,
string  viewName 
)
inline

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.

Implements IAllowSesssionRenderOrResize.