mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add platform lifecycle callbacks to CameraServer base class
This commit is contained in:
parent
f5918a9d35
commit
85ec5b9f42
8 changed files with 44 additions and 30 deletions
|
|
@ -622,7 +622,7 @@ void CameraAndroid::set_monitoring_feeds(bool p_monitoring_feeds) {
|
|||
}
|
||||
}
|
||||
|
||||
void CameraAndroid::handle_pause() {
|
||||
void CameraAndroid::handle_application_pause() {
|
||||
for (int i = 0; i < feeds.size(); i++) {
|
||||
Ref<CameraFeedAndroid> feed = feeds[i];
|
||||
if (feed.is_valid()) {
|
||||
|
|
@ -631,7 +631,7 @@ void CameraAndroid::handle_pause() {
|
|||
}
|
||||
}
|
||||
|
||||
void CameraAndroid::handle_resume() {
|
||||
void CameraAndroid::handle_application_resume() {
|
||||
for (int i = 0; i < feeds.size(); i++) {
|
||||
Ref<CameraFeedAndroid> feed = feeds[i];
|
||||
if (feed.is_valid()) {
|
||||
|
|
@ -640,7 +640,7 @@ void CameraAndroid::handle_resume() {
|
|||
}
|
||||
}
|
||||
|
||||
void CameraAndroid::handle_rotation_change() {
|
||||
void CameraAndroid::handle_display_rotation_change(int) {
|
||||
for (int i = 0; i < feeds.size(); i++) {
|
||||
Ref<CameraFeedAndroid> feed = feeds[i];
|
||||
if (feed.is_valid()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue