public virtual unsafe void SetNotification(global::Android.App.Notification p0) { const string __id = "setNotification.(Landroid/app/Notification;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public unsafe void EnableLocInForeground(int p0, global::Android.App.Notification p1) { const string __id = "enableLocInForeground.(ILandroid/app/Notification;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue(p0); __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle); _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args); } finally { } }
public unsafe void EnableBackgroundLocation(int p0, global::Android.App.Notification p1) { if (id_enableBackgroundLocation_ILandroid_app_Notification_ == IntPtr.Zero) { id_enableBackgroundLocation_ILandroid_app_Notification_ = JNIEnv.GetMethodID(class_ref, "enableBackgroundLocation", "(ILandroid/app/Notification;)V"); } JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_enableBackgroundLocation_ILandroid_app_Notification_, __args); }
public unsafe global::Android.App.Notification A(string p0, global::System.Collections.Generic.IDictionary <string, string> p1) { if (id_a_Ljava_lang_String_Ljava_util_Map_ == IntPtr.Zero) { id_a_Ljava_lang_String_Ljava_util_Map_ = JNIEnv.GetMethodID(class_ref, "a", "(Ljava/lang/String;Ljava/util/Map;)Landroid/app/Notification;"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p1 = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(p1); JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(native_p1); global::Android.App.Notification __ret = global::Java.Lang.Object.GetObject <global::Android.App.Notification> (JNIEnv.CallObjectMethod(Handle, id_a_Ljava_lang_String_Ljava_util_Map_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p1); return(__ret); }
public StatusBarNotification(string pkg, string basePkg, int id, string tag, int uid, int initialPid, int score, global::Android.App.Notification notification, global::Android.OS.UserHandle user, long postTime) /* MethodBuilder.Create */ { }
public unsafe NotificationTarget(global::Android.Content.Context p0, global::Android.Widget.RemoteViews p1, int p2, int p3, int p4, global::Android.App.Notification p5, int p6) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [7]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); __args [6] = new JValue(p6); if (GetType() != typeof(NotificationTarget)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/Context;Landroid/widget/RemoteViews;IIILandroid/app/Notification;I)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/Context;Landroid/widget/RemoteViews;IIILandroid/app/Notification;I)V", __args); return; } if (id_ctor_Landroid_content_Context_Landroid_widget_RemoteViews_IIILandroid_app_Notification_I == IntPtr.Zero) { id_ctor_Landroid_content_Context_Landroid_widget_RemoteViews_IIILandroid_app_Notification_I = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Landroid/widget/RemoteViews;IIILandroid/app/Notification;I)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Landroid_widget_RemoteViews_IIILandroid_app_Notification_I, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_Context_Landroid_widget_RemoteViews_IIILandroid_app_Notification_I, __args); } finally { } }
static void n_EnableBackgroundLocation_ILandroid_app_Notification_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1) { global::Com.Amap.Api.Location.ILocationManagerBase __this = global::Java.Lang.Object.GetObject <global::Com.Amap.Api.Location.ILocationManagerBase> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.App.Notification p1 = global::Java.Lang.Object.GetObject <global::Android.App.Notification> (native_p1, JniHandleOwnership.DoNotTransfer); __this.EnableBackgroundLocation(p0, p1); }
public static unsafe void RegisterForBackgroundNotifications(global::Android.Content.Context applicationContext, int notificationId, global::Android.App.Notification notification) { if (id_registerForBackgroundNotifications_Landroid_content_Context_ILandroid_app_Notification_ == IntPtr.Zero) { id_registerForBackgroundNotifications_Landroid_content_Context_ILandroid_app_Notification_ = JNIEnv.GetStaticMethodID(class_ref, "registerForBackgroundNotifications", "(Landroid/content/Context;ILandroid/app/Notification;)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(applicationContext); __args [1] = new JValue(notificationId); __args [2] = new JValue(notification); JNIEnv.CallStaticVoidMethod(class_ref, id_registerForBackgroundNotifications_Landroid_content_Context_ILandroid_app_Notification_, __args); } finally { } }