ApplicationStartInfo.Reason Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The reason code of what triggered the process's start.
public Android.App.ApplicationStartInfoStartReason Reason { [Android.Runtime.Register("getReason", "()I", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getReason", "()I", "", ApiSince=35)>]
member this.Reason : Android.App.ApplicationStartInfoStartReason
Property Value
Value is one of the following: START_REASON_ALARM START_REASON_BACKUP START_REASON_BOOT_COMPLETE START_REASON_BROADCAST START_REASON_CONTENT_PROVIDER START_REASON_JOB START_REASON_LAUNCHER START_REASON_LAUNCHER_RECENTS START_REASON_OTHER START_REASON_PUSH START_REASON_SERVICE START_REASON_START_ACTIVITY
- Attributes
Remarks
The reason code of what triggered the process's start. Start reason provides granular reasoning on why the app is being started. Start reason should not be used for distinguishing between the component the app is being started for as some reasons may overlap with multiple components, see getStartComponent() for this functionality instead. Note: field will be set for any getStartupState() value.
Android reference for android.app.ApplicationStartInfo.getReason.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.