blob: 0408aa18973c34f49d276196b827e2b4df801490 [file]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Autogenerated by jnigen. DO NOT EDIT!
#include <stdint.h>
#include "jni.h"
#include "dartjni.h"
thread_local JNIEnv *jniEnv;
struct jni_context jni;
struct jni_context (*context_getter)(void);
JNIEnv *(*env_getter)(void);
void setJniGetters(struct jni_context (*cg)(void),
JNIEnv *(*eg)(void)) {
context_getter = cg;
env_getter = eg;
}
// com.example.notification_plugin.Notifications
jclass _c_com_example_notification_plugin_Notifications = NULL;
jmethodID _m_com_example_notification_plugin_Notifications_ctor = NULL;
FFI_PLUGIN_EXPORT
jobject com_example_notification_plugin_Notifications_ctor() {
load_env();
load_class_gr(&_c_com_example_notification_plugin_Notifications, "com/example/notification_plugin/Notifications");
load_method(_c_com_example_notification_plugin_Notifications, &_m_com_example_notification_plugin_Notifications_ctor, "<init>", "()V");
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_com_example_notification_plugin_Notifications, _m_com_example_notification_plugin_Notifications_ctor);
return to_global_ref(_result);
}
jmethodID _m_com_example_notification_plugin_Notifications_showNotification = NULL;
FFI_PLUGIN_EXPORT
void com_example_notification_plugin_Notifications_showNotification(jobject context, int32_t notificationID, jobject title, jobject text) {
load_env();
load_class_gr(&_c_com_example_notification_plugin_Notifications, "com/example/notification_plugin/Notifications");
load_static_method(_c_com_example_notification_plugin_Notifications, &_m_com_example_notification_plugin_Notifications_showNotification, "showNotification", "(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;)V");
(*jniEnv)->CallStaticVoidMethod(jniEnv, _c_com_example_notification_plugin_Notifications, _m_com_example_notification_plugin_Notifications_showNotification, context, notificationID, title, text);
}