Android.App.PermissionUI 命名空間

提供請求和管理系統渲染位置按鈕的類型。

類別

名稱 Description
LocationButtonProviderFactory

一個用來建立 LocationButtonProvider 實例的工廠。

LocationButtonRequest

定義了位置按鈕所需的視覺屬性。

LocationButtonRequest.Builder

建構者 LocationButtonRequest。

LocationButtonRequest.InterfaceConsts

提供由 實 LocationButtonRequest作的介面常數。

LocationButtonSession

提供位置按鈕會話常數的舊有類別表示。

介面

名稱 Description
ILocationButtonClient

一個回調介面,用來接收關於位置按鈕的事件。

ILocationButtonProvider

位置按鈕 API 的主要入口。

ILocationButtonSession

此介面定義了位置按鈕會話,並允許應用程式更改或自訂按鈕的外觀。

列舉

名稱 Description
LocationButtonSessionTextType

指定位置按鈕的文字選擇。

備註

建立一個服務 LocationButtonProviderFactory 提供者,並用來 LocationButtonRequest 描述按鈕的外觀。 ILocationButtonClient 接收會話事件與權限結果,並提供 ILocationButtonSession 按鈕表面及會話操作的存取權。