blob: d0b08fb0124844a64c4c07ac236afaa1a8047094 [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!
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: constant_identifier_names
// ignore_for_file: annotate_overrides
// ignore_for_file: no_leading_underscores_for_local_identifiers
// ignore_for_file: unused_element
import "dart:ffi" as ffi;
import "package:jni/jni.dart" as jni;
import "../../_init.dart" show jniLookup;
/// from: com.example.notification_plugin.Notifications
class Notifications extends jni.JniObject {
Notifications.fromRef(ffi.Pointer<ffi.Void> ref) : super.fromRef(ref);
static final _ctor =
jniLookup<ffi.NativeFunction<ffi.Pointer<ffi.Void> Function()>>(
"com_example_notification_plugin_Notifications_ctor")
.asFunction<ffi.Pointer<ffi.Void> Function()>();
/// from: public void <init>()
Notifications() : super.fromRef(_ctor()) {
jni.Jni.env.checkException();
}
static final _showNotification = jniLookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.Int32,
ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
"com_example_notification_plugin_Notifications_showNotification")
.asFunction<
void Function(ffi.Pointer<ffi.Void>, int, ffi.Pointer<ffi.Void>,
ffi.Pointer<ffi.Void>)>();
/// from: static public void showNotification(android.content.Context context, int notificationID, java.lang.String title, java.lang.String text)
static void showNotification(jni.JniObject context, int notificationID,
jni.JniString title, jni.JniString text) {
final result__ = _showNotification(
context.reference, notificationID, title.reference, text.reference);
jni.Jni.env.checkException();
return result__;
}
}