LocationRequestActivity

A transparent activity that handles location permission requests for the device profile collector.

This activity is launched when location permissions are needed but not yet granted. It presents the system permission dialog to the user and communicates the result back to the LocationCollector through the PermissionResultManager. The activity finishes automatically after handling the permission result.

Features:

  • Locks screen orientation to prevent unwanted rotations during permission request

  • Uses ActivityResultContracts for modern permission handling

  • Automatically finishes after permission result is processed

  • Handles edge cases with delayed finish to ensure proper result delivery

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
protected open override fun onCreate(savedInstanceState: Bundle?)
Link copied to clipboard
protected open override fun onDestroy()

Called when the activity is being destroyed.