blob: f7bd86cd9d050a1706a5dd45fcc6f0ff67f8dd53 [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 jlookup;
/// from: com.example.notification_plugin.Notifications
class Notifications extends jni.JlObject {
Notifications.fromRef(ffi.Pointer<ffi.Void> ref) : super.fromRef(ref);
static final _ctor =
jlookup<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());
static final _showNotification = jlookup<
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.JlObject context, int notificationID,
jni.JlString title, jni.JlString text) =>
_showNotification(
context.reference, notificationID, title.reference, text.reference);
}