-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changelog: Bump android library to 1.8.0 Bump iOS library to 1.6.1 Support disabling Actions Add GesturedeckFlutterActivity --------- Co-authored-by: Foti Dim <[email protected]>
- Loading branch information
1 parent
1b0abae
commit 12184c9
Showing
20 changed files
with
857 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
android/src/main/kotlin/com/navideck/gesturedeck_flutter/GesturedeckFlutterActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.navideck.gesturedeck_flutter | ||
|
||
import android.os.Bundle | ||
import android.view.KeyEvent | ||
import io.flutter.embedding.android.FlutterActivity | ||
|
||
open class GesturedeckFlutterActivity : FlutterActivity() { | ||
private var gesturedeckFlutterPlugin: GesturedeckFlutterPlugin? = null | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
gesturedeckFlutterPlugin = GesturedeckFlutterPlugin.instance | ||
gesturedeckFlutterPlugin?.extendAroundNotch(this) | ||
} | ||
|
||
// To Take Control over VolumeKeys , and show our custom UI instead of Device VolumeDialog | ||
override fun dispatchKeyEvent(event: KeyEvent): Boolean { | ||
return gesturedeckFlutterPlugin?.dispatchKeyEvent(event) ?: false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.