Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Methods/Initialize: Difference between revisions
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:45:57 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/methods/Initialize.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].Initialize Method = | ||
Signals the remote MSN® Messenger client that the Activity is ready to accept events. In the remote application, fires the <span class="clsUIElement">OnRemoteAppLoaded</span> event. | Signals the remote MSN® Messenger client that the Activity is ready to accept events. In the remote application, fires the <span class="clsUIElement">OnRemoteAppLoaded</span> event. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 13: | Line 13: | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 20: | Line 20: | ||
</div> | </div> | ||
Return Values | === Return Values. === | ||
No return value. | No return value. | ||
Remarks | === Remarks === | ||
This method is needed to ensure that applications start only after both are ready to receive events. To avoid losing events, an application must wait for this indication that the remote client is ready to communicate. | This method is needed to ensure that applications start only after both are ready to receive events. To avoid losing events, an application must wait for this indication that the remote client is ready to communicate. |
Latest revision as of 01:11, 13 August 2022
Channel.Initialize Method
Signals the remote MSN® Messenger client that the Activity is ready to accept events. In the remote application, fires the OnRemoteAppLoaded event.
VBScript Syntax
external.Channel.Initialize
JavaScript Syntax
window.external.Channel.Initialize
Return Values.
No return value.
Remarks
This method is needed to ensure that applications start only after both are ready to receive events. To avoid losing events, an application must wait for this indication that the remote client is ready to communicate.
An application may need to perform some task at startup before it is ready to accept events; for example, Microsoft® .NET Passport authentication.
The first application that is ready calls Initialize and displays a message that it is waiting. The second application that is ready calls Initialize and fires OnRemoteAppLoaded in the first. If the second application is delayed or fails to start, the OnRemoteAppLoaded event will not fire. If the application appears to be waiting for a long time, the user has the option to close that instance of the application and invite again.