コード例 #1
0
 /// <summary>
 /// Handles calls made from Fade targeted to this client.
 /// </summary>
 /// <param name="eventArgs">Event arguments that contain information about call.</param>
 /// <returns></returns>
 public object HandleCall(ExternalInterfaceCallEventArgs eventArgs)
 {
     if (eventArgs.FunctionCall.FunctionName.Equals("stageOneInitialized"))
     {
         if ((bool)eventArgs.FunctionCall.Arguments[1] == true)
         {
             StageOneLoaded?.Invoke(this, EventArgs.Empty);
         }
         else
         {
             StageOneFailed?.Invoke(this, EventArgs.Empty);
         }
     }
     return(null);
 }
コード例 #2
0
 private object ExternalInterfaceHandler(object sender, ExternalInterfaceCallEventArgs e)
 {
     InvokeFromActionScript(e.FunctionCall.FunctionName, e.FunctionCall.Arguments);
     return(false);
 }