-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: android platform view host modes (#56)
- [x] public API - [x] test texture layer - [x] test hybrid composition https://docs.flutter.dev/platform-integration/android/platform-views#hybrid-composition-1
- Loading branch information
Showing
7 changed files
with
102 additions
and
55 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
android/src/main/kotlin/com/github/josxha/maplibre/MapLibreMapController.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
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
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,23 @@ | ||
// ignore_for_file: constant_identifier_names | ||
|
||
/// The different ways a MapLibre map can be displayed on Android. | ||
/// | ||
/// https://docs.flutter.dev/platform-integration/android/platform-views | ||
/// https://github.com/flutter/flutter/blob/master/docs/platforms/android/Android-Platform-Views.md | ||
enum AndroidPlatformViewMode { | ||
/// [Texture Layer Hybrid Composition](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Texture-Layer-Hybrid-Composition.md) | ||
/// with fallback to Virtual Display, when the current SDK version is <23 | ||
/// or MapWidget.textureView is false. | ||
tlhc_vd, | ||
|
||
/// [Texture Layer Hybrid Composition](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Texture-Layer-Hybrid-Composition.md) | ||
/// with fallback to Hybrid Composition, when the current SDK version is <23 | ||
/// or MapWidget.textureView is false. | ||
tlhc_hc, | ||
|
||
/// Always use [Hybrid Composition](https://github.com/flutter/flutter/blob/master/docs/platforms/Hybrid-Composition.md). | ||
hc, | ||
|
||
/// Always use [Virtual Display](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Virtual-Display.md). | ||
vd; | ||
} |
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