[DllImport(Libraries.Notification, EntryPoint = "notification_set_delete_timeout")]
internal static extern NotificationError SetDeleteTime(NotificationSafeHandle handle, int timeout);
- [DllImport(Libraries.Notification, EntryPoint = "notification_set_extention_data")]
- internal static extern NotificationError SetExtentionData(NotificationSafeHandle handle, string key, SafeBundleHandle bundleHandle);
+ [DllImport(Libraries.Notification, EntryPoint = "notification_set_extension_data")]
+ internal static extern NotificationError SetExtensionData(NotificationSafeHandle handle, string key, SafeBundleHandle bundleHandle);
- [DllImport(Libraries.Notification, EntryPoint = "notification_get_extention_data")]
- internal static extern NotificationError GetExtentionData(NotificationSafeHandle handle, string key, out SafeBundleHandle bundleHandle);
+ [DllImport(Libraries.Notification, EntryPoint = "notification_get_extension_data")]
+ internal static extern NotificationError GetExtensionData(NotificationSafeHandle handle, string key, out SafeBundleHandle bundleHandle);
[DllImport(Libraries.Notification, EntryPoint = "notification_get_args")]
- internal static extern NotificationError GetExtentionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr group_args);
+ internal static extern NotificationError GetExtensionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr group_args);
[DllImport(Libraries.Notification, EntryPoint = "notification_get_default_button")]
internal static extern NotificationError GetDefaultButton(NotificationSafeHandle handle, out int index);
foreach (string key in GetextraDataDictionary().Keys)
{
Log.Info(LogTag, "Start to bind Notification.ExtenderData to SafeHandle");
- Interop.Notification.SetExtentionData(Handle, key, extraDataDictionary[key].SafeBundleHandle);
+ Interop.Notification.SetExtensionData(Handle, key, extraDataDictionary[key].SafeBundleHandle);
}
foreach (Notification.StyleBase style in styleDictionary.Values)
internal Notification Build()
{
- IntPtr extention = IntPtr.Zero;
- IntPtr extentionBundlePtr = IntPtr.Zero;
+ IntPtr extension = IntPtr.Zero;
+ IntPtr extensionBundlePtr = IntPtr.Zero;
NotificationBinder.BindSafeHandle(this);
- Interop.Notification.GetExtentionBundle(Handle, out extention, out extentionBundlePtr);
+ Interop.Notification.GetExtensionBundle(Handle, out extension, out extensionBundlePtr);
- if (extention != IntPtr.Zero)
+ if (extension != IntPtr.Zero)
{
- Bundle bundle = new Bundle(new SafeBundleHandle(extention, false));
+ Bundle bundle = new Bundle(new SafeBundleHandle(extension, false));
foreach (string key in bundle.Keys)
{
if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_"))
continue;
SafeBundleHandle sbh;
- Interop.Notification.GetExtentionData(Handle, key, out sbh);
+ Interop.Notification.GetExtensionData(Handle, key, out sbh);
extraDataDictionary.Add(key, new Bundle(sbh));
}
}
Bundle bundle = new Bundle();
bundle.AddItem(replyKey, ((int)this.ParentIndex).ToString());
- Interop.Notification.SetExtentionData(notification.Handle, replyKey, bundle.SafeBundleHandle);
+ Interop.Notification.SetExtensionData(notification.Handle, replyKey, bundle.SafeBundleHandle);
Interop.Notification.SetPlaceHolderLength(notification.Handle, this.ReplyMax);
Interop.Notification.SetText(notification.Handle, NotificationText.PlaceHolder, PlaceHolderText, null, -1);
try
{
SafeBundleHandle bundleHandle;
- Interop.Notification.GetExtentionData(notification.Handle, replyKey, out bundleHandle);
+ Interop.Notification.GetExtensionData(notification.Handle, replyKey, out bundleHandle);
Bundle bundle = new Bundle(bundleHandle);
reply.ParentIndex = (ButtonIndex)int.Parse(bundle.GetItem(replyKey).ToString());
}
[DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_property")]
internal static extern ErrorCode GetProperties(NotificationSafeHandle handle, out int flags);
- [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extention_data")]
+ [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extension_data")]
internal static extern ErrorCode GetExtender(NotificationSafeHandle handle, string key, out SafeBundleHandle value);
[DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_clone")]
internal static extern ErrorCode NotificationListFree(IntPtr list);
[DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_args")]
- internal static extern ErrorCode GetExtentionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr groupArgs);
+ internal static extern ErrorCode GetExtensionBundle(NotificationSafeHandle handle, out IntPtr args, out IntPtr groupArgs);
[DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_hide_timeout")]
internal static extern ErrorCode GetHideTimeout(NotificationSafeHandle handle, out int timeout);
NotificationLayout layout;
NotificationType type;
string text;
- IntPtr extention = IntPtr.Zero;
+ IntPtr extension = IntPtr.Zero;
IntPtr dummy = IntPtr.Zero;
SafeAppControlHandle appcontrol = null;
eventargs.IsVisible = false;
}
- err = Interop.NotificationEventListener.GetExtentionBundle(eventargs.Handle, out extention, out dummy);
+ err = Interop.NotificationEventListener.GetExtensionBundle(eventargs.Handle, out extension, out dummy);
if (err != Interop.NotificationEventListener.ErrorCode.None)
{
Log.Info(LogTag, "unable to get Extender");
}
- if (extention != IntPtr.Zero)
+ if (extension != IntPtr.Zero)
{
- Bundle bundle = new Bundle(new SafeBundleHandle(extention, false));
+ Bundle bundle = new Bundle(new SafeBundleHandle(extension, false));
foreach (string key in bundle.Keys)
{
if (key.StartsWith("_NOTIFICATION_EXTENSION_EVENT_"))