| Package | com.adobe.rtc.util |
| Class | public class RoomTemplater |
| Inheritance | RoomTemplater flash.events.EventDispatcher |
<util:RoomTemplater id="templater"/>
<rtc:AdobeHSAuthenticator
// Deployed applications DO NOT hard code username and password here.
userName="AdobeIDusername@example.com"
password="AdobeIDpassword"
id="auth"/>
<session:ConnectSessionContainer
roomURL="http://connect.acrobat.com/fakeAccount/fakeRoom"
authenticator="{auth}">
<mx:VBox>
<pods:SimpleChat id="publicChat"/>
<mx:Button label="Save" click="templater.saveRoomAsTemplate('myTemplateName');"/>
</mx:VBox>
</session:ConnectSessionContainer>Note: You can save rooms as templates programmatically or via the Room Console.
![]()
See also
| Property | Defined by | ||
|---|---|---|---|
| connectSession : IConnectSession
The IConnectSession with which this component is associated.
| RoomTemplater | ||
| Method | Defined by | ||
|---|---|---|---|
| RoomTemplater | |||
|
saveRoomAsTemplate(p_name:String):void
Saves the room corresponding to the current IConnectSession as a template with the provided name.
| RoomTemplater | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the room has been successfully saved as a template. | RoomTemplater | |||
| connectSession | property |
public var connectSession:IConnectSessionThe IConnectSession with which this component is associated. Defaults to the first IConnectSession instance created.
| RoomTemplater | () | constructor |
public function RoomTemplater()
| saveRoomAsTemplate | () | method |
public function saveRoomAsTemplate(p_name:String):voidSaves the room corresponding to the current IConnectSession as a template with the provided name. Templates may be used for provisioning new rooms that are pre-populated with CollectionNodes. Note that the IConnectSession must be fully synchronized for this method to work.
Parametersp_name:String — The name of the template to store. Using an existing name overwrites that template.
|
| templateSave | event |
com.adobe.rtc.events.RoomTemplateEvent
Dispatched when the room has been successfully saved as a template.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/util/RoomTemplater.html