2 using System.Collections.Generic;
5 using System.Threading.Tasks;
7 using Tizen.Internals.Errors;
9 namespace Tizen.Applications
11 public class ReceivedAppControl : AppControl
13 private const string LogTag = "Tizen.Applications";
15 internal ReceivedAppControl(IntPtr handle)
17 ErrorCode err = Interop.AppControl.DangerousClone(out _handle, handle);
18 if (err != ErrorCode.None)
20 throw new InvalidOperationException("Failed to create the appcontrol handle. Err = " + err);
27 public string CallerApplicationId
31 string value = String.Empty;
32 ErrorCode err = Interop.AppControl.GetCaller(_handle, out value);
33 if (err != ErrorCode.None)
35 Log.Warn(LogTag, "Failed to get the caller appId from the appcontrol. Err = " + err);
44 public bool IsReplyRequested
49 ErrorCode err = Interop.AppControl.IsReplyRequested(_handle, out value);
50 if (err != ErrorCode.None)
52 Log.Warn(LogTag, "Failed to check the replyRequested of the appcontrol. Err = " + err);
62 /// <param name="reply"></param>
63 public void Reply(AppControl reply)
65 throw new NotImplementedException();