-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(android): rework view type (#3940)
- Loading branch information
Showing
10 changed files
with
136 additions
and
64 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
android/src/main/java/com/brentvatne/common/api/ViewType.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,19 @@ | ||
package com.brentvatne.common.api | ||
|
||
internal object ViewType { | ||
/** | ||
* View used will be a TextureView. | ||
*/ | ||
const val VIEW_TYPE_TEXTURE = 0 | ||
|
||
/** | ||
* View used will be a SurfaceView. | ||
*/ | ||
const val VIEW_TYPE_SURFACE = 1 | ||
|
||
/** | ||
* View used will be a SurfaceView with secure flag set. | ||
*/ | ||
const val VIEW_TYPE_SURFACE_SECURE = 2 | ||
annotation class ViewType | ||
} |
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
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,11 @@ | ||
/** | ||
* Define Available view type for android | ||
* these values shall match android spec, see ViewType.kt | ||
*/ | ||
enum ResizeMode { | ||
TEXTURE = 0, | ||
SURFACE = 1, | ||
SURFACE_SECURE = 2, | ||
} | ||
|
||
export default ResizeMode; |
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