also looking at this
feat(android): deleteCalendarEvent — the first action to answer through the channel
#155
7 files
+288
-3
| @@ -624,6 +624,14 @@ pub const Jni = struct { | ||
| 624 | 624 | return result; |
| 625 | 625 | } |
| 626 | 626 | |
| 627 | pub fn callIntMethodA(self: Self, obj: jobject, id: jmethodID, args: []const jvalue) JniError!jint { | |
| 628 | const call: *const fn (JNIEnv, jobject, jmethodID, [*]const jvalue) callconv(.c) jint = | |
| 629 | @ptrCast(self.table().CallIntMethodA orelse return JniError.NotFound); | |
| 630 | const result = call(self.env, obj, id, args.ptr); | |
| 631 | try self.check(); | |
| 632 | return result; | |
| 633 | } | |
| 634 | ||
| 627 | 635 | pub fn callBooleanMethodA(self: Self, obj: jobject, id: jmethodID, args: []const jvalue) JniError!bool { |
| 628 | 636 | const call: *const fn (JNIEnv, jobject, jmethodID, [*]const jvalue) callconv(.c) jboolean = |
| 629 | 637 | @ptrCast(self.table().CallBooleanMethodA orelse return JniError.NotFound); |