unreal.PlatformGameInstance
¶
- class unreal.PlatformGameInstance(outer=None, name='None')¶
Bases:
unreal.GameInstance
UObject based class for handling mobile events. Having this object as an option gives the app lifetime access to these global delegates. The component UApplicationLifecycleComponent is destroyed at level loads
C++ Source:
Module: Engine
File: BlueprintPlatformLibrary.h
Editor Properties: (see get_editor_property/set_editor_property)
application_failed_to_register_for_remote_notifications_delegate
(PlatformFailedToRegisterForRemoteNotificationsDelegate): [Read-Write] called when the application fails to register for remote notificationsapplication_has_entered_foreground_delegate
(PlatformDelegate): [Read-Write] Called when the application is returning to the foreground (reverse any processing done in the EnterBackground delegate)application_has_reactivated_delegate
(PlatformDelegate): [Read-Write] Called when the application has been reactivated (reverse any processing done in the Deactivate delegate)application_received_local_notification_delegate
(PlatformReceivedLocalNotificationDelegate): [Read-Write] called when the application receives a local notificationapplication_received_remote_notification_delegate
(PlatformReceivedRemoteNotificationDelegate): [Read-Write] called when the application receives a remote notificationapplication_received_screen_orientation_changed_notification_delegate
(PlatformScreenOrientationChangedDelegate): [Read-Write] called when the application receives a screen orientation change notificationapplication_received_startup_arguments_delegate
(PlatformStartupArgumentsDelegate): [Read-Write] Called with arguments passed to the application on statup, perhaps meta data passed on by another application which launched this one.application_registered_for_remote_notifications_delegate
(PlatformRegisteredForRemoteNotificationsDelegate): [Read-Write] called when the user grants permission to register for remote notificationsapplication_registered_for_user_notifications_delegate
(PlatformRegisteredForUserNotificationsDelegate): [Read-Write] called when the user grants permission to register for notificationsapplication_should_unload_resources_delegate
(PlatformDelegate): [Read-Write] Called when the OS is running low on resources and asks the application to free up any cached resources, drop graphics quality etc.application_will_deactivate_delegate
(PlatformDelegate): [Read-Write] This is called when the application is about to be deactivated (e.g., due to a phone call or SMS or the sleep button). The game should be paused if possible, etc…application_will_enter_background_delegate
(PlatformDelegate): [Read-Write] This is called when the application is being backgrounded (e.g., due to switching to another app or closing it via the home button) The game should release shared resources, save state, etc…, since it can be terminated from the background state without any further warning.application_will_terminate_delegate
(PlatformDelegate): [Read-Write] This may be called when the application is getting terminated by the OS. There is no guarantee that this will ever be called on a mobile device, save state when ApplicationWillEnterBackgroundDelegate is called instead.on_pawn_controller_changed_delegates
(OnPawnControllerChanged): [Read-Write] gets triggered shortly after a pawn’s controller is set. Most of the timeit signals that the Controller has changed but in edge cases (like during replication) it might end up broadcasting the same pawn-controller pair more than once
- property application_failed_to_register_for_remote_notifications_delegate¶
[Read-Write] called when the application fails to register for remote notifications
- property application_has_entered_foreground_delegate¶
[Read-Write] Called when the application is returning to the foreground (reverse any processing done in the EnterBackground delegate)
- Type
- property application_has_reactivated_delegate¶
[Read-Write] Called when the application has been reactivated (reverse any processing done in the Deactivate delegate)
- Type
- property application_received_local_notification_delegate¶
[Read-Write] called when the application receives a local notification
- property application_received_remote_notification_delegate¶
[Read-Write] called when the application receives a remote notification
- property application_received_screen_orientation_changed_notification_delegate¶
[Read-Write] called when the application receives a screen orientation change notification
- property application_received_startup_arguments_delegate¶
[Read-Write] Called with arguments passed to the application on statup, perhaps meta data passed on by another application which launched this one.
- property application_registered_for_remote_notifications_delegate¶
[Read-Write] called when the user grants permission to register for remote notifications
- property application_registered_for_user_notifications_delegate¶
[Read-Write] called when the user grants permission to register for notifications
- property application_should_unload_resources_delegate¶
[Read-Write] Called when the OS is running low on resources and asks the application to free up any cached resources, drop graphics quality etc.
- Type
- property application_will_deactivate_delegate¶
[Read-Write] This is called when the application is about to be deactivated (e.g., due to a phone call or SMS or the sleep button). The game should be paused if possible, etc…
- Type
- property application_will_enter_background_delegate¶
[Read-Write] This is called when the application is being backgrounded (e.g., due to switching to another app or closing it via the home button) The game should release shared resources, save state, etc…, since it can be terminated from the background state without any further warning.
- Type
- property application_will_terminate_delegate¶
[Read-Write] This may be called when the application is getting terminated by the OS. There is no guarantee that this will ever be called on a mobile device, save state when ApplicationWillEnterBackgroundDelegate is called instead.
- Type