Skip to content

Commit

Permalink
Added clear on Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarkstar committed Sep 3, 2018
1 parent 0c93b69 commit 91ac440
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sources/Menu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,20 @@ public extension AndroidMenuForward {
return AndroidMenuItemForward(javaObject: __return)
}

public func clear(){

var __locals = [jobject]()

var __args = [jvalue]( repeating: jvalue(), count: 1 )

JNIMethod.CallVoidMethod(
object: javaObject,
methodName: "clear",
methodSig: "()V",
methodCache: &MenuJNICache.MethodID.clear,
args: &__args,
locals: &__locals )
}
}

internal extension AndroidMenuForward {
Expand All @@ -134,6 +148,7 @@ internal extension AndroidMenuForward {
static var add2: jmethodID?
static var add3: jmethodID?
static var add4: jmethodID?
static var clear: jmethodID?
}
}
}
Expand Down

0 comments on commit 91ac440

Please sign in to comment.