ApplicationStartInfo.StartComponent 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 component type that was being started which triggered the start.
public Android.App.ApplicationStartInfoStartComponent StartComponent { [Android.Runtime.Register("getStartComponent", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getStartComponent", "()I", "", ApiSince=36)>]
member this.StartComponent : Android.App.ApplicationStartInfoStartComponent
Property Value
- Attributes
Remarks
The component type that was being started which triggered the start.
Start component should be used to accurately distinguish between the 4 component types: activity, service, broadcast, and content provider. This can be useful for optimizing startup flow by enabling the caller to only load the necessary dependencies for a specific component type. For more granular information on why the app is being started, see #getReason
.
Note: field will be set for any #getStartupState
value.
Java documentation for android.app.ApplicationStartInfo.getStartComponent()
.
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.