PreferenceActivity 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這是活動的基底類別,用來向使用者展示偏好的階層結構。
[Android.Runtime.Register("android/preference/PreferenceActivity", DoNotGenerateAcw=true)]
public abstract class PreferenceActivity : Android.App.ListActivity, Android.Preferences.PreferenceFragment.IOnPreferenceStartFragmentCallback, IDisposable
[<Android.Runtime.Register("android/preference/PreferenceActivity", DoNotGenerateAcw=true)>]
type PreferenceActivity = class
inherit ListActivity
interface PreferenceFragment.IOnPreferenceStartFragmentCallback
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- 繼承
-
PreferenceActivity
- 屬性
- 實作
備註
這是活動的基底類別,用來向使用者展示偏好的階層結構。 在此類別 android.os.Build.VERSION_CODES#HONEYCOMB 之前,僅允許顯示單一偏好設定;此功能現在應該會在新 PreferenceFragment 類別中找到。 如果你使用的是 PreferenceActivity 的舊模式,相關文件會適用於這裡已棄用的 API。
此活動顯示一個或多個偏好設定標頭,每個標頭與 a PreferenceFragment 相關聯,以顯示該標頭的偏好設定。 然而,這些協會的實際佈局與展示方式會有所不同;目前它可能採取兩種主要方法:
<ul><li>在小螢幕上,剛啟動時可能只顯示標題為單一列表。 選擇其中一個標頭項目只會顯示該標頭的 PreferenceFragment(在 Android N 及以下版本中,會啟動新的活動)。 <在>大螢幕上,它可能會同時顯示標頭和目前的偏好片段,作為窗格。 選擇標頭項目會切換為顯示該項目正確的 PreferenceFragment。 </ul>
PreferenceActivity 的子類別應該實作 #onBuildHeaders 來填充標頭清單所需的項目。 這樣做隱含地將類別切換到新的「標頭 + 片段」模式,而非過去僅顯示單一偏好清單的模式。
<div class=“特殊參考”><h3>開發者指南</h3>
有關使用 PreferenceActivity資訊,請閱讀 設定 指南。
</div>
此會員已被棄用。 使用 AndroidX 偏好函式庫 ,讓所有裝置的行為一致。 欲了解更多使用 AndroidX 偏好函式庫的資訊,請參閱設定。
Java 文件 android.preference.PreferenceActivity。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
建構函式
| 名稱 | Description |
|---|---|
| PreferenceActivity() | |
| PreferenceActivity(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
欄位
| 名稱 | Description |
|---|---|
| AccessibilityService |
使用 with |
| AccountService |
使用 with |
| ActivityService |
使用 來 |
| AdvancedProtectionService |
使用 以 |
| AlarmService |
使用 with |
| AppFunctionService |
用 來 |
| AppInteractionService |
用 with |
| AppOpsService |
使用 with |
| AppSearchService |
用 來 |
| AppwidgetService |
使用 with |
| AudioService |
使用來 |
| AuthenticationPolicyService |
使用 以 |
| AutofillService |
使用 以 |
| BatteryService |
用 來 |
| BindAllowActivityStarts |
已淘汰.
標記 |
| BindExternalServiceLong |
其運作方式與 相同 |
| BindNotPerceptible |
已淘汰.
標記: |
| BindPackageIsolatedProcess |
已淘汰.
標記 |
| BindSharedIsolatedProcess |
已淘汰.
標記為 |
| BiometricService |
用 with |
| BlobStoreService |
使用 with |
| BluetoothService |
用 來 |
| BugreportService |
服務用來擷取錯誤報告。 (繼承來源 Context) |
| CameraService |
用 來 |
| CaptioningService |
使用 with |
| CarrierConfigService |
使用 來 |
| ChooserService |
使用 with |
| ClipboardService |
使用 with |
| CompanionDeviceService |
使用 with |
| ConnectivityDiagnosticsService |
使用來 |
| ConnectivityService |
使用 with |
| ConsumerIrService |
使用時 |
| ContactKeysService |
使用來 |
| ContentRestrictionService |
使用 with |
| CredentialService |
使用 with |
| CrossProfileAppsService |
使用 with |
| DeviceIdDefault |
預設裝置 ID,即主要(非虛擬)裝置的 ID。 (繼承來源 Context) |
| DeviceIdInvalid |
裝置 ID 無效。 (繼承來源 Context) |
| DeviceLockService |
使用 with |
| DevicePolicyService |
使用 with |
| DisplayHashService |
使用 to |
| DisplayService |
使用 with |
| DomainVerificationService |
使用 to |
| DownloadService |
使用 with |
| DropboxService |
用 來 |
| EuiccService |
用 來 |
| ExtraNoHeaders |
啟動此活動時,呼叫意圖可包含此額外布林值,導致標頭列表不應顯示。 |
| ExtraShowFragment |
啟動此活動時,呼叫的 Intent 可包含此額外字串,以指定應先顯示的片段。 |
| ExtraShowFragmentArguments |
當啟動此活動並使用 |
| ExtraShowFragmentShortTitle |
啟動此活動並使用 |
| ExtraShowFragmentTitle |
啟動此活動並使用 |
| FileIntegrityService |
使用 以 |
| FileService |
使用 with |
| FingerprintService |
使用來 |
| FullscreenModeRequestEnter |
已淘汰.
請求類型為 |
| FullscreenModeRequestExit |
已淘汰.
請求類型為 |
| GameService |
使用 with |
| GrammaticalInflectionService |
使用 with |
| HardwarePropertiesService |
使用 with |
| HeaderIdUndefined |
預設值表示 |
| HealthconnectService |
使用 with |
| HidService |
使用 with |
| InputMethodService |
使用 with |
| InputService |
使用 來 |
| IpsecService |
使用 with |
| JobSchedulerService |
用 with |
| KeychainService |
使用 with |
| KeyguardService |
用 來 |
| KeystoreService |
使用 with |
| LauncherAppsService |
使用 with |
| LayoutInflaterService |
在此語境下,使用 with |
| LocaleService |
使用 with |
| LocationService |
使用 with |
| MediaCommunicationService |
使用 來 |
| MediaMetricsService |
使用 with |
| MediaProjectionService |
使用 with |
| MediaQualityService |
使用 with |
| MediaRouterService |
使用 with |
| MediaSessionService |
使用 with |
| MemoryBudgetService |
用 來 |
| MidiService |
使用 with |
| MultisensoryManagerService |
用來 |
| NetworkStatsService |
用 來 |
| NfcService |
使用 with |
| NotificationService |
使用 with |
| NpuService |
使用 with |
| NsdService |
使用 with |
| OverlayService |
用 來 |
| OverrideTransitionClose |
已淘汰.
請求類型 或 |
| OverrideTransitionOpen |
已淘汰.
請求類型 或 |
| PccSandboxService |
使用 with |
| PeopleService |
使用 with |
| PerformanceHintService |
使用 來 |
| PersistentDataBlockService |
用 來 |
| PowerService |
用 來 |
| PrintService |
|
| ProfilingService |
使用 以 |
| ReceiverExported |
已淘汰.
標記: |
| ReceiverNotExported |
已淘汰.
標記 |
| ReceiverVisibleToInstantApps |
已淘汰.
標記: |
| RestrictionsService |
使用 with |
| RoleService |
使用 with |
| SatelliteService |
使用 with |
| SearchService |
使用 with |
| SecurityStateService |
使用 with |
| SensorService |
用 來 |
| SerialService |
用 來 |
| ShortcutService |
用 with |
| StatusBarService |
用 來 |
| StorageService |
使用 來 |
| StorageStatsService |
使用 with |
| SystemHealthService |
用 來 |
| TelecomService |
使用 with |
| TelephonyImsService |
使用 以 |
| TelephonyPhoneNumberService |
使用 with |
| TelephonyService |
使用 來 |
| TelephonySubscriptionService |
使用 with |
| TetheringService |
使用 with |
| TextClassificationService |
使用 with |
| TextServicesManagerService |
使用 with |
| TimeManagerService |
使用 with |
| TvAdService |
使用 with |
| TvInputService |
用 來 |
| TvInteractiveAppService |
使用 with |
| UiModeService |
用 來 |
| UsageStatsService |
用 來 |
| UsbService |
用 來 |
| UserService |
使用 with |
| VibratorManagerService |
使用來 |
| VibratorService |
使用來 |
| VirtualDeviceService |
使用 with |
| VpnManagementService |
使用 with |
| WallpaperService |
用 with |
| WebAppService |
使用 with |
| WifiAwareService |
使用 with |
| WifiP2pService |
使用 with |
| WifiRttRangingService |
用 with |
| WifiService |
使用 with |
| WindowService |
使用 with |
屬性
| 名稱 | Description |
|---|---|
| ActionBar |
請檢索此活動的行動欄參考。 (繼承來源 Activity) |
| Application |
回傳擁有此活動的應用程式。 (繼承來源 Activity) |
| ApplicationContext |
回傳目前程序單一全域應用程式物件的上下文。 (繼承來源 ContextWrapper) |
| ApplicationInfo |
請回傳本情境套件的完整應用程式資訊。 (繼承來源 ContextWrapper) |
| Assets |
回傳一個 AssetManager 實例,針對你的應用程式套件。 (繼承來源 ContextWrapper) |
| AttributionSource |
取得與此情境相關的歸屬來源。 (繼承來源 Context) |
| AttributionTag |
歸因可以在複雜的應用程式中用來邏輯地區分應用程式的各個部分。 (繼承來源 Context) |
| BaseContext | (繼承來源 ContextWrapper) |
| CacheDir |
回傳檔案系統中應用程式專屬快取目錄的絕對路徑。 (繼承來源 ContextWrapper) |
| Caller |
回傳啟動此活動的應用程式的 ComponentCaller 實例。 (繼承來源 Activity) |
| CallingActivity |
回傳觸發該活動的活動名稱。 (繼承來源 Activity) |
| CallingPackage |
回傳呼叫此活動的套件名稱。 (繼承來源 Activity) |
| ChangingConfigurations |
如果這個活動因為無法處理設定參數的變更而被銷毀(因此其 |
| Class |
回傳此 |
| ClassLoader |
回傳一個你可以用來擷取這個套件裡的類別載入器。 (繼承來源 ContextWrapper) |
| CodeCacheDir |
回傳用於儲存快取程式碼的檔案系統中應用程式專屬快取目錄的絕對路徑。 (繼承來源 ContextWrapper) |
| ComponentName |
回傳此活動的完整元件名稱。 (繼承來源 Activity) |
| ContentResolver |
回傳一個 ContentResolver 實例,針對你的應用程式套件。 (繼承來源 ContextWrapper) |
| ContentScene |
取回代表此視窗目前內容的 。 |
| ContentTransitionManager |
在此視窗中取得負責預設轉換的人員 |
| CurrentCaller |
透過 或 |
| CurrentFocus |
呼叫 |
| DataDir |
回傳檔案系統中存放所有屬於此應用程式的私有檔案的目錄的絕對路徑。 應用程式不應直接使用此路徑;他們應該改用 getFilesDir() 、getCacheDir() 、getDir(String,int) 或其他儲存 API 來處理這個類別。 若呼叫應用程式移至已採用的儲存裝置,回傳路徑可能會隨時間改變,因此僅應保留相對路徑。 呼叫應用程式在回傳路徑下讀寫檔案不需要額外權限。 退稅檔案 (繼承來源 ContextWrapper) |
| DeviceId |
會取得該上下文所關聯的裝置 ID。 (繼承來源 Context) |
| Display |
取得這個情境所關聯的顯示。 (繼承來源 Context) |
| ExternalCacheDir |
回傳主要外部檔案系統目錄的絕對路徑(該目錄位於 ExternalStorageDirectory 應用程式可放置快取檔案的位置)。 (繼承來源 ContextWrapper) |
| FilesDir |
回傳檔案系統中存放檔案 OpenFileOutput(String, FileCreationMode) 的目錄的絕對路徑。 (繼承來源 ContextWrapper) |
| FragmentManager |
回傳 FragmentManager,以便與與此活動相關的片段互動。 (繼承來源 Activity) |
| Handle |
底層 Android 實例的帳號。 (繼承來源 Object) |
| HasHeaders |
如果該活動目前顯示標頭清單,則會回傳 true。 |
| HasWindowFocus |
如果該活動的 <em>主<視窗/em> 視窗目前有視窗焦點,則會回傳為真。 (繼承來源 Activity) |
| Immersive |
這表示這項活動是「沉浸式」的,如果可能的話,不應被通知打斷。 -或者- 調整當前沉浸模式設定。 (繼承來源 Activity) |
| InitialCaller |
回傳最初啟動此活動的應用程式的 ComponentCaller 實例。 (繼承來源 Activity) |
| Intent |
回傳引發此活動的意圖。 -或- 改變由 |
| IsActivityTransitionRunning |
回傳此活動是否正在進行任何活動轉移。 (繼承來源 Activity) |
| IsChangingConfigurations |
檢查該活動是否正在被銷毀,以便以新配置重建。 (繼承來源 Activity) |
| IsChild |
這是否是 的子節點 |
| IsDestroyed |
如果 Activity 已經完成最後 |
| IsDeviceProtectedStorage |
表示此上下文的儲存 API 是否由裝置保護儲存所支援。 (繼承來源 ContextWrapper) |
| IsFinishing |
檢查這個活動是否正在完成中,不論是因為你點名 |
| IsHandoffEnabled |
如果此活動已啟用交接,則可退貨。 (繼承來源 Activity) |
| IsInMultiWindowMode |
如果活動目前處於多視窗模式,則會回傳為真。 (繼承來源 Activity) |
| IsInPictureInPictureMode |
如果活動目前處於畫中畫模式,則回傳為真。 (繼承來源 Activity) |
| IsLaunchedFromBubble |
表示此活動是否從氣泡中啟動。 (繼承來源 Activity) |
| IsLocalVoiceInteractionSupported |
查詢目前啟用的語音互動服務是否支援回傳語音互動器供活動使用。 (繼承來源 Activity) |
| IsMultiPane |
如果此活動顯示多個窗格——標頭和偏好設定片段——則會回傳為真。 |
| IsRestricted |
表示此上下文是否受限。 (繼承來源 Context) |
| IsTaskRoot |
回傳此活動是否為任務的根源。 (繼承來源 Activity) |
| IsUiContext |
如果上下文是可存取 、 或 |
| IsVoiceInteraction |
檢查此活動是否作為語音互動的一部分執行。 (繼承來源 Activity) |
| IsVoiceInteractionRoot |
像 |
| JniIdentityHashCode |
取得由互通執行時指派給此 Java 對等端的身份雜湊碼。 (繼承來源 Object) |
| JniManagedPeerState |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| JniPeerMembers |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 |
| LastNonConfigurationInstance |
取得先前 |
| LaunchedFromPackage |
回傳最初啟動此活動的應用程式的套件名稱。 (繼承來源 Activity) |
| LaunchedFromUid |
會回傳最初啟動此活動的應用程式的 UID。 (繼承來源 Activity) |
| LayoutInflater |
方便打電話 |
| ListAdapter |
取得與此活動的 ListView 相關聯的 ListAdapter。 -或者- 提供列表視圖的游標。 (繼承來源 ListActivity) |
| ListView |
取得活動的清單檢視小工具。 (繼承來源 ListActivity) |
| LoaderManager |
回傳 LoaderManager 以執行此活動,必要時建立。 (繼承來源 Activity) |
| LocalClassName |
會回傳此活動的類別名稱,並移除套件前綴。 (繼承來源 Activity) |
| MainExecutor |
回傳 和 |
| MainLooper |
回傳當前程序主執行緒的 Looper。 (繼承來源 ContextWrapper) |
| MaxNumPictureInPictureActions |
回傳當使用者在畫中畫模式下與目前活動互動時,會在畫中畫介面中顯示的動作數量。 (繼承來源 Activity) |
| MaxNumPictureInPictureOverlayActions |
回傳畫中畫視窗中將顯示的最大覆蓋層動作數量。 (繼承來源 Activity) |
| MediaController |
它會取得控制器,當這個活動在前景時,應該會接收媒體金鑰和音量事件。 -或- 設定 a |
| MenuInflater |
以此語境回傳 a |
| NoBackupFilesDir |
回傳檔案系統目錄的絕對路徑,類似 FilesDir。 (繼承來源 ContextWrapper) |
| ObbDir |
回傳該應用程式的 OBB 檔案(若有)可找到的主要外部儲存目錄。 (繼承來源 ContextWrapper) |
| OnBackInvokedDispatcher |
回傳 |
| OpPackageName |
回傳這個上下文中應該用於 |
| PackageCodePath |
回傳完整路徑至此情境的主要 Android 套件。 (繼承來源 ContextWrapper) |
| PackageManager |
回傳 PackageManager 實例以查找全域套件資訊。 (繼承來源 ContextWrapper) |
| PackageName |
回傳這個應用程式的套件名稱。 (繼承來源 ContextWrapper) |
| PackageResourcePath |
回傳完整路徑至此情境的主要 Android 套件。 (繼承來源 ContextWrapper) |
| Params |
回傳該上下文所用的參數集合,若是透過 |
| Parent |
如果是 的子節點 |
| ParentActivityIntent |
取得 |
| PeerReference |
取得這個 Java 節點的 JNI 物件參考。 (繼承來源 Object) |
| PreferenceManager |
已淘汰.
退還 |
| PreferenceScreen |
已淘汰.
取得該活動所顯示偏好階層的根源。 -或- 設定該活動所顯示偏好階層的根節點。 |
| Referrer |
回傳關於誰發起此活動的資訊。 (繼承來源 Activity) |
| RequestedOrientation |
回傳活動目前請求的方向,該方向要麼是應用程式清單中請求的方向,要麼是最後給出 |
| Resources |
回傳一個應用程式套件的 Resources 實例。 (繼承來源 ContextWrapper) |
| SearchEvent |
在 onSearchRequested() 回調時,這個函式會回傳 |
| SelectedItemId |
取得目前選取清單項目的游標列 ID。 (繼承來源 ListActivity) |
| SelectedItemPosition |
取得目前選中的清單項目的位置。 (繼承來源 ListActivity) |
| SplashScreen |
取得該活動用來與啟動畫面對話的介面。 (繼承來源 Activity) |
| TaskId |
回傳該活動所屬任務的識別碼。 (繼承來源 Activity) |
| Theme |
回傳與此上下文相關的主題物件。 (繼承來源 ContextWrapper) |
| ThresholdClass |
此 API 支援 Mono for Android 基礎架構,並非直接從你的程式碼中使用。 |
| ThresholdType |
此 API 支援 Mono for Android 基礎架構,並非直接從你的程式碼中使用。 |
| Title | (繼承來源 Activity) |
| TitleColor |
已淘汰.
更換與此活動相關的標題顏色。 (繼承來源 Activity) |
| TitleFormatted |
更改與此活動相關的標題。 (繼承來源 Activity) |
| UpdateableFlags |
取得可更新(即新增或移除)現有連線的綁定標誌清單。 (繼承來源 Context) |
| VoiceInteractor |
擷取使用者正在經歷的活動 |
| VolumeControlStream |
它會得到建議的音訊串流,而硬體音量控制應該會調整音量。 -或- 建議一個音訊串流,其音量應由硬體音量控制來調整。 (繼承來源 Activity) |
| Wallpaper |
已淘汰.
(繼承來源 ContextWrapper)
|
| WallpaperDesiredMinimumHeight |
已淘汰.
(繼承來源 ContextWrapper)
|
| WallpaperDesiredMinimumWidth |
已淘汰.
(繼承來源 ContextWrapper)
|
| Window |
取回活動的電流 |
| WindowManager |
取出顯示自訂視窗的視窗管理器。 (繼承來源 Activity) |
方法
| 名稱 | Description |
|---|---|
| AddContentView(View, ViewGroup+LayoutParams) |
為活動新增內容檢視。 (繼承來源 Activity) |
| AddPreferencesFromIntent(Intent) |
已淘汰.
新增符合所給活動 |
| AddPreferencesFromResource(Int32) |
已淘汰.
將給定的 XML 資源膨脹,並將偏好階層加入目前的偏好階層。 |
| ApplyOverrideConfiguration(Configuration) |
呼叫在此上下文中設定「覆寫配置」——此配置回應一個或多個套用於上下文的標準設定值。 (繼承來源 ContextThemeWrapper) |
| AttachBaseContext(Context) |
為這個 ContextWrapper 設定基礎上下文。 (繼承來源 ContextWrapper) |
| BindIsolatedService(Intent, Context+BindServiceFlags, String, IExecutor, IServiceConnection) |
請參考 bindIsolatedService(Intent, int, String, Executor, ServiceConnection) 呼叫 BindServiceFlags.of(long) 以取得 BindServiceFlags 物件。 (繼承來源 Context) |
| BindIsolatedService(Intent, Int32, String, IExecutor, IServiceConnection) |
在孤立服務的特定情況下,這種變化 |
| BindService(Intent, Bind, IExecutor, IServiceConnection) |
和 |
| BindService(Intent, Context+BindServiceFlags, IExecutor, IServiceConnection) |
請參見 bindService(Intent, int, Executor, ServiceConnection) 呼叫 BindServiceFlags.of(long) 以取得 BindServiceFlags 物件。 (繼承來源 Context) |
| BindService(Intent, IServiceConnection, Bind) |
連接應用程式服務,必要時建立它。 (繼承來源 ContextWrapper) |
| BindService(Intent, IServiceConnection, Context+BindServiceFlags) |
請參見 bindService(Intent, ServiceConnection, int) 呼叫 BindServiceFlags.of(long) 以取得 BindServiceFlags 物件。 (繼承來源 Context) |
| BindServiceAsUser(Intent, IServiceConnection, Context+BindServiceFlags, UserHandle) |
請參考 bindServiceAsUser(Intent, ServiceConnection, int, UserHandle) 呼叫 BindServiceFlags.of(long) 以取得 BindServiceFlags 物件。 (繼承來源 Context) |
| BindServiceAsUser(Intent, IServiceConnection, Int32, UserHandle) |
以與 相同的方式 |
| CheckCallingOrSelfPermission(String) |
確認是IPC的通話流程 還是您 獲得了特定權限。 (繼承來源 ContextWrapper) |
| CheckCallingOrSelfUriPermission(Uri, ActivityFlags) |
確認 IPC 的通話流程或 您 是否已獲得存取特定 URI 的權限。 (繼承來源 ContextWrapper) |
| CheckCallingOrSelfUriPermissions(IList<Uri>, Int32) |
確認 IPC <em>或 you</em> 的呼叫過程是否已被授權存取 URI 清單。 (繼承來源 Context) |
| CheckCallingPermission(String) |
確認你所處理的 IPC 的通話流程是否已獲得特定權限。 (繼承來源 ContextWrapper) |
| CheckCallingUriPermission(Uri, ActivityFlags) |
確認呼叫程序及使用者 ID 是否已獲得存取特定 URI 的權限。 (繼承來源 ContextWrapper) |
| CheckCallingUriPermissions(IList<Uri>, Int32) |
確認呼叫程序與 UID 是否已獲得存取 URI 清單的權限。 (繼承來源 Context) |
| CheckContentUriPermissionFull(Uri, Int32, Int32, ActivityFlags) |
確認某個程序和 UID 是否已被授權存取特定內容 URI。 (繼承來源 Context) |
| CheckPermission(String, Int32, Int32) |
判斷該權限是否允許用於系統中執行的特定程序及使用者 ID。 (繼承來源 ContextWrapper) |
| CheckSelfPermission(String) |
確認您是否已獲得特定許可。 (繼承來源 ContextWrapper) |
| CheckUriPermission(Uri, Int32, Int32, ActivityFlags) |
判斷特定程序及使用者 ID 是否已被授權存取特定 URI。 (繼承來源 ContextWrapper) |
| CheckUriPermission(Uri, String, String, Int32, Int32, ActivityFlags) |
檢查 Uri 和一般權限。 (繼承來源 ContextWrapper) |
| CheckUriPermissions(IList<Uri>, Int32, Int32, Int32) |
確認某個程序與 UID 是否已被授權存取 URI 清單。 (繼承來源 Context) |
| ClearOverrideActivityTransition(OverrideTransition) |
清除設定為 |
| ClearWallpaper() |
已淘汰.
(繼承來源 ContextWrapper)
|
| Clone() |
建立並回傳此物件的副本。 (繼承來源 Object) |
| CloseContextMenu() |
程式化關閉最近開啟的右鍵選單(如果有顯示)。 (繼承來源 Activity) |
| CloseOptionsMenu() |
Progammatic 會關閉選項選單。 (繼承來源 Activity) |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| CreateAttributionContext(String) |
回傳一個新的 Context 物件,針對目前的 Context,但屬性是不同的標籤。 (繼承來源 Context) |
| CreateConfigurationContext(Configuration) |
回傳一個新的 Context 物件,針對目前的 Context,但其資源會調整以符合給定的配置。 (繼承來源 ContextWrapper) |
| CreateContext(ContextParams) |
建立具有特定屬性與行為的情境。 (繼承來源 Context) |
| CreateContextForSplit(String) |
為該分割名稱回傳一個新的 Context 物件。 新的 Context 有一個 ClassLoader 和 Resources 物件,可以存取分割及其所有相依關係的程式碼/資源。 每次呼叫此方法都會回傳一個新的上下文物件實例;上下文物件不會被共享,但共用狀態(如 ClassLoader 或其他資源)可能會共享,因此上下文本身可以相當輕量。 (繼承來源 ContextWrapper) |
| CreateDeviceContext(Int32) |
從目前上下文回傳一個新 |
| CreateDeviceProtectedStorageContext() |
回傳一個新的上下文物件,用於目前上下文,但其儲存 API 由裝置保護儲存所支援。 在具備直接開機功能的裝置上,儲存在該位置的資料會以綁定於實體裝置的金鑰加密,且在裝置成功開機後,使用者使用憑證(如鎖定模式或 PIN 碼)驗證之前及之後,都能立即存取資料。 由於裝置保護的資料在無需使用者驗證的情況下即可取得,您應謹慎限制使用此上下文儲存的資料。 例如,強烈建議在裝置保護區域儲存敏感的認證憑證或密碼。 若底層裝置無法使用不同金鑰儲存裝置保護與憑證保護的資料,則兩個儲存區域將同時開放。 它們仍作為磁碟上的兩個獨立儲存位置,只有可用性視窗會改變。 每次呼叫此方法都會回傳一個新的上下文物件實例;上下文物件不會共享,但共用狀態(如 ClassLoader、同一配置的其他資源)可能會共享,因此上下文本身可以相當輕量。 退稅資料背景 (繼承來源 ContextWrapper) |
| CreateDisplayContext(Display) |
回傳一個新的上下文物件,用於當前上下文,但其資源調整以符合該顯示的指標。 (繼承來源 ContextWrapper) |
| CreatePackageContext(String, PackageContextFlags) |
為給定的應用程式名稱回傳一個新的 Context 物件。 (繼承來源 ContextWrapper) |
| CreatePendingResult(Int32, Intent, PendingIntentFlags) |
建立一個新的 PendingIntent 物件,交給其他人讓他們用來回傳結果資料給你的 |
| CreateWindowContext(Display, Int32, Bundle) |
為給定 |
| CreateWindowContext(Int32, Bundle) |
為非活動視窗建立一個上下文。 (繼承來源 Context) |
| DatabaseList() |
回傳一組字串,標示與此上下文應用程式套件相關的私有資料庫。 (繼承來源 ContextWrapper) |
| DeleteDatabase(String) |
刪除與此上下文應用程式套件相關的現有私有 SQLiteDatabase。 (繼承來源 ContextWrapper) |
| DeleteFile(String) |
刪除與此上下文應用程式套件相關的指定私有檔案。 (繼承來源 ContextWrapper) |
| DeleteSharedPreferences(String) |
刪除一個現有的共享偏好設定檔案。 (繼承來源 ContextWrapper) |
| DismissDialog(Int32) |
已淘汰.
關閉先前 |
| DismissKeyboardShortcutsHelper() |
關閉鍵盤快捷鍵畫面。 (繼承來源 Activity) |
| DispatchGenericMotionEvent(MotionEvent) |
被召喚處理一般動態事件。 (繼承來源 Activity) |
| DispatchKeyEvent(KeyEvent) |
被召喚處理關鍵事件。 (繼承來源 Activity) |
| DispatchKeyShortcutEvent(KeyEvent) |
被呼叫處理一個關鍵捷徑事件。 (繼承來源 Activity) |
| DispatchPopulateAccessibilityEvent(AccessibilityEvent) |
被召喚處理無障礙事件的人口。 (繼承來源 Activity) |
| DispatchTouchEvent(MotionEvent) |
被召喚來處理觸控螢幕事件。 (繼承來源 Activity) |
| DispatchTrackballEvent(MotionEvent) |
被召喚處理軌跡球事件。 (繼承來源 Activity) |
| Dispose() |
釋放該 Java 節點所持有的資源。 (繼承來源 Object) |
| Dispose(Boolean) |
釋放該 Java 節點所持有的資源。 (繼承來源 Object) |
| DisposeUnlessReferenced() |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| Dump(String, FileDescriptor, PrintWriter, String[]) |
將活動狀態印入給定的串流中。 (繼承來源 Activity) |
| EnforceCallingOrSelfPermission(String, String) |
如果你或你正在處理的 IPC 呼叫程序都沒有獲得特定權限,請拋出 SecurityException。 (繼承來源 ContextWrapper) |
| EnforceCallingOrSelfUriPermission(Uri, ActivityFlags, String) |
如果 IPC 或 你的 呼叫程序尚未被授權存取特定 URI,請拋出 SecurityException。 (繼承來源 ContextWrapper) |
| EnforceCallingPermission(String, String) |
如果你正在處理的 IPC 呼叫程序尚未獲得特定權限,請拋出 SecurityException。 (繼承來源 ContextWrapper) |
| EnforceCallingUriPermission(Uri, ActivityFlags, String) |
如果呼叫程序和使用者 ID 尚未被授權存取特定 URI,請拋出 SecurityException。 (繼承來源 ContextWrapper) |
| EnforcePermission(String, Int32, Int32, String) |
如果系統中執行的特定程序和使用者 ID 不允許該權限,請拋出 SecurityException。 (繼承來源 ContextWrapper) |
| EnforceUriPermission(Uri, Int32, Int32, ActivityFlags, String) |
如果某個程序和使用者 ID 尚未被授權存取特定 URI,請拋出 SecurityException。 (繼承來源 ContextWrapper) |
| EnforceUriPermission(Uri, String, String, Int32, Int32, ActivityFlags, String) |
同時執行 Uri 和一般授權。 (繼承來源 ContextWrapper) |
| EnterPictureInPictureMode() |
在目前系統狀態下,盡可能將活動切換為畫中畫模式。 (繼承來源 Activity) |
| EnterPictureInPictureMode(PictureInPictureParams) |
在目前系統狀態下,盡可能將活動切換為畫中畫模式。 (繼承來源 Activity) |
| Equals(Object) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| Equals(Object) |
表示是否有其他物體「等同」於此物。 (繼承來源 Object) |
| FileList() |
回傳一個字串陣列,命名與該上下文應用套件相關的私有檔案。 (繼承來源 ContextWrapper) |
| FindPreference(ICharSequence) |
已淘汰.
根據鑰匙找到 a |
| FindPreference(String) |
已淘汰.
根據鑰匙找到 a |
| FindViewById(Int32) |
找到一個由 |
| FindViewById<T>(Int32) |
從 XML 版面資源中尋找由 id 屬性識別的視圖。 (繼承來源 Activity) |
| Finish() |
當你的活動結束並應該關閉時,就稱之為此。 (繼承來源 Activity) |
| FinishActivity(Int32) |
強行完成你之前開始的 |
| FinishActivityFromChild(Activity, Int32) |
當該活動的子活動呼叫其 endActivity() 時,就會被呼叫。 (繼承來源 Activity) |
| FinishAffinity() |
完成這個活動,以及目前任務中緊接著所有與其相近的相關活動。 (繼承來源 Activity) |
| FinishAfterTransition() |
反轉活動場景的 Transition 條目,並觸發呼叫的 Activity 反轉其退出 Transition。 (繼承來源 Activity) |
| FinishAndRemoveTask() |
當你的活動完成並應該關閉,並且完成根活動時,該任務應該被完全移除,稱為此稱呼。 (繼承來源 Activity) |
| FinishFromChild(Activity) |
當該活動的子活動呼叫其 |
| FinishPreferencePanel(Fragment, Result, Intent) |
被偏好面板的片段召喚完成。 |
| GetColor(Int32) |
回傳與特定資源 ID 相關且依當前主題設計的顏色。 (繼承來源 Context) |
| GetColorStateList(Int32) |
回傳與特定資源 ID 相關聯的色彩狀態清單,並依當前主題做樣式。 (繼承來源 Context) |
| GetDatabasePath(String) |
回傳檔案系統中以 openOrCreateDatabase(String, int, CursorFactory) 建立資料庫的絕對路徑。 若呼叫應用程式移至已採用的儲存裝置,回傳路徑可能會隨時間改變,因此僅應保留相對路徑。 (繼承來源 ContextWrapper) |
| GetDir(String, FileCreationMode) |
擷取並建立一個新的目錄,應用程式可以放置自己的自訂資料檔案。 (繼承來源 ContextWrapper) |
| GetDrawable(Int32) |
回傳一個可繪製的物件,與特定資源 ID 相關聯,並依當前主題做樣式。 (繼承來源 Context) |
| GetExternalCacheDirs() |
回傳所有外部儲存裝置上應用程式專屬目錄的絕對路徑,該應用程式可放置其擁有的快取檔案。 (繼承來源 ContextWrapper) |
| GetExternalFilesDir(String) |
回傳主外部檔案系統目錄的絕對路徑(該 ExternalStorageDirectory位址位於 ),該應用程式可放置其擁有的持久檔案。 (繼承來源 ContextWrapper) |
| GetExternalFilesDirs(String) |
回傳所有外部儲存裝置上應用程式專屬目錄的絕對路徑,該應用程式可放置其擁有的持久檔案。 (繼承來源 ContextWrapper) |
| GetExternalMediaDirs() |
已淘汰.
回傳所有外部儲存裝置上應用程式專屬目錄的絕對路徑,該應用程式可在此放置媒體檔案。 (繼承來源 ContextWrapper) |
| GetFileStreamPath(String) |
回傳檔案系統中建立檔案的絕對路徑,該檔案存放於該 OpenFileOutput(String, FileCreationMode) 檔案中。 (繼承來源 ContextWrapper) |
| GetHashCode() |
回傳物件的雜湊碼值。 (繼承來源 Object) |
| GetObbDirs() |
回傳所有外部儲存裝置上應用程式專屬目錄的絕對路徑,該目錄中可找到應用程式的 OBB 檔案(若有)。 (繼承來源 ContextWrapper) |
| GetPreferences(FileCreationMode) |
取得 |
| GetSharedPreferences(String, FileCreationMode) |
取回並保留偏好設定檔「名稱」的內容,回傳一個 SharedPreferences,透過它你可以取回並修改其值。 (繼承來源 ContextWrapper) |
| GetString(Int32, Object[]) |
回傳應用程式套件預設字串表中的本地化字串。 (繼承來源 Context) |
| GetString(Int32) |
回傳應用程式套件預設字串表中的本地化字串。 (繼承來源 Context) |
| GetSystemService(Class) |
依類別將句柄回傳至系統層級服務。 (繼承來源 Context) |
| GetSystemService(String) |
以名稱將句柄回傳給系統層級服務。 (繼承來源 ContextWrapper) |
| GetSystemServiceName(Class) |
取得由指定類別所代表的系統層級服務名稱。 (繼承來源 ContextWrapper) |
| GetText(Int32) |
從應用程式套件預設字串表回傳一個本地化且有樣式的 CharSequence。 (繼承來源 Context) |
| GetTextFormatted(Int32) |
從應用程式套件預設字串表回傳一個本地化且有樣式的 CharSequence。 (繼承來源 Context) |
| GrantUriPermission(String, Uri, ActivityFlags) |
將特定 Uri 存取權限授予另一個套件,不論該套件是否擁有存取該 Uri 內容提供者的一般權限。 (繼承來源 ContextWrapper) |
| InvalidateHeaders() |
需要更改顯示的標頭時,請打電話。 |
| InvalidateOptionsMenu() |
宣告選項選單已更改,因此應該重新建立。 (繼承來源 Activity) |
| IsValidFragment(String) |
子類別應覆寫此方法,並驗證該片段是否為可附加於此活動的有效型別。 |
| JavaFinalize() |
已淘汰.
當垃圾回收判定該物件不再有相關參考時,由垃圾回收器呼叫。 (繼承來源 Object) |
| LoadHeadersFromResource(Int32, IList<PreferenceActivity.Header>) |
將給定的 XML 檔案作為標頭描述,將每個解析後的標頭加入目標清單。 |
| ManagedQuery(Uri, String[], String, String[], String) |
已淘汰.
包裹器
|
| MoveDatabaseFrom(Context, String) |
將現有的資料庫檔案從給定的來源儲存上下文移動到這個上下文。 這通常用於升級後的資料在儲存位置間的遷移,例如遷移到裝置保護儲存裝置。 資料庫必須關閉後才能移動。 (繼承來源 ContextWrapper) |
| MoveSharedPreferencesFrom(Context, String) |
將現有的共享偏好設定檔案從給定的來源儲存上下文移到這個上下文。 這通常用於升級後的資料在儲存位置間的遷移,例如移動到裝置保護儲存裝置。 (繼承來源 ContextWrapper) |
| MoveTaskToBack(Boolean) |
將包含此活動的任務移到活動堆疊的最後方。 (繼承來源 Activity) |
| NavigateUpTo(Intent) |
從此活動導向 upIntent 指定的活動,並在過程中完成該活動。 (繼承來源 Activity) |
| NavigateUpToFromChild(Activity, Intent) |
當該活動的子活動呼叫其 |
| Notify() |
喚醒一個正在該物件監視器上等待的執行緒。 (繼承來源 Object) |
| NotifyAll() |
喚醒所有等待該物件監視器的執行緒。 (繼承來源 Object) |
| ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32) |
在此上下文主題中檢索樣式屬性資訊。 (繼承來源 Context) |
| ObtainStyledAttributes(IAttributeSet, Int32[]) |
在此上下文主題中檢索樣式屬性資訊。 (繼承來源 Context) |
| ObtainStyledAttributes(Int32, Int32[]) |
在此上下文主題中檢索樣式屬性資訊。 (繼承來源 Context) |
| ObtainStyledAttributes(Int32[]) |
在此上下文主題中檢索樣式屬性資訊。 (繼承來源 Context) |
| OnActionModeFinished(ActionMode) |
通知該活動一個動作模式已結束。 (繼承來源 Activity) |
| OnActionModeStarted(ActionMode) |
通知活動已啟動動作模式。 (繼承來源 Activity) |
| OnActivityReenter(Int32, Intent) |
當你啟動的活動帶有活動轉換時,會透過回傳的活動轉移暴露該活動,並給你結果代碼及相關額外資料。 (繼承來源 Activity) |
| OnActivityResult(Int32, Result, Intent, ComponentCaller) |
和 相同 |
| OnActivityResult(Int32, Result, Intent) |
當你啟動的活動退出時會呼叫,給你你開始時用的 requestCode、它回傳的結果代碼,以及任何額外的資料。 (繼承來源 Activity) |
| OnApplyThemeResource(Resources+Theme, Int32, Boolean) |
由 和 |
| OnAttachedToWindow() |
當與該活動相關的主要視窗已連接到視窗管理器時,會被呼叫。 (繼承來源 Activity) |
| OnAttachFragment(Fragment) |
當 Fragment 被附加到此活動時,立即呼叫,緊接著呼叫其 |
| OnBackPressed() |
當活動偵測到使用者按下後鍵時,會被呼叫。 (繼承來源 Activity) |
| OnBuildHeaders(IList<PreferenceActivity.Header>) |
當活動需要建立標頭清單時呼叫。 |
| OnBuildStartFragmentIntent(String, Bundle, Int32, Int32) |
在單窗格模式下呼叫, |
| OnChildTitleChanged(Activity, ICharSequence) | (繼承來源 Activity) |
| OnChildTitleChanged(Activity, String) | (繼承來源 Activity) |
| OnConfigurationChanged(Configuration) |
系統在裝置設定變更時呼叫,而你的活動仍在執行。 (繼承來源 Activity) |
| OnContentChanged() |
每當螢幕內容檢視改變(因呼叫 Window.setContentView 或 Window.addContentView)時,都會呼叫這個鉤子。 (繼承來源 Activity) |
| OnContextItemSelected(IMenuItem) |
每當選擇右鍵選單中的項目時,就會呼叫這個鉤子。 (繼承來源 Activity) |
| OnContextMenuClosed(IMenu) |
這個鉤子會在關閉右鍵選單時被呼叫(無論是使用者用返回/選單按鈕取消選單,或是選取項目時)。 (繼承來源 Activity) |
| OnCreate(Bundle, PersistableBundle) |
與 同 |
| OnCreate(Bundle) |
活動開始時會被叫來。 (繼承來源 Activity) |
| OnCreateContextMenu(IContextMenu, View, IContextMenuContextMenuInfo) |
當視圖的右鍵選單即將顯示時會被呼叫。 (繼承來源 Activity) |
| OnCreateDescription() |
為此活動產生新的描述。 (繼承來源 Activity) |
| OnCreateDescriptionFormatted() |
為此活動產生新的描述。 (繼承來源 Activity) |
| OnCreateDialog(Int32, Bundle) |
已淘汰.
回調功能,用於建立由活動管理(儲存並還原)的對話。 (繼承來源 Activity) |
| OnCreateDialog(Int32) |
已淘汰.
此方法在 API 等級 15 中被棄用。 (繼承來源 Activity) |
| OnCreateNavigateUpTaskStack(TaskStackBuilder) |
定義在上行導航時,將從不同任務產生的合成任務堆疊。 (繼承來源 Activity) |
| OnCreateOptionsMenu(IMenu) |
初始化活動標準選項選單的內容。 (繼承來源 Activity) |
| OnCreatePanelMenu(Int32, IMenu) |
預設實作
|
| OnCreatePanelView(Int32) |
預設實作
|
| OnCreateThumbnail(Bitmap, Canvas) |
此方法在 API 等級 28 中被棄用。 (繼承來源 Activity) |
| OnCreateView(String, Context, IAttributeSet) |
標準實作 |
| OnCreateView(View, String, Context, IAttributeSet) |
標準實作
|
| OnDestroy() |
在活動被銷毀前,先進行最後的清理。 (繼承來源 Activity) |
| OnDetachedFromWindow() |
當與該活動相關的主視窗從視窗管理器中分離時,會呼叫它。 (繼承來源 Activity) |
| OnEnterAnimationComplete() |
活動在其視窗動畫期間無法繪製。 (繼承來源 Activity) |
| OnGenericMotionEvent(MotionEvent) |
當活動內任何視圖都未處理一般動作事件時,會被呼叫。 (繼承來源 Activity) |
| OnGetDirectActions(CancellationSignal, IConsumer) |
回傳應用程式支援的直接行動清單。 (繼承來源 Activity) |
| OnGetInitialHeader() |
呼叫以決定要顯示的初始標頭。 |
| OnGetNewHeader() |
在標頭清單更新後( |
| OnHandoffActivityDataRequested(HandoffActivityDataRequestInfo) |
代表此活動的擷取 |
| OnHeaderClick(PreferenceActivity+Header, Int32) |
當使用者在標頭列表中選擇項目時呼叫。 |
| OnIsHidingHeaders() |
被呼叫來判斷標頭清單是否應該被隱藏。 |
| OnIsMultiPane() |
被呼叫來判斷活動是否應該以多窗格模式執行。 |
| OnKeyDown(Keycode, KeyEvent) |
當按鍵按下且活動內任何視圖都無法處理時,會被呼叫。 (繼承來源 Activity) |
| OnKeyLongPress(Keycode, KeyEvent) |
預設實作 |
| OnKeyMultiple(Keycode, Int32, KeyEvent) |
預設實作 |
| OnKeyShortcut(Keycode, KeyEvent) |
當某個快捷鍵事件未被活動中的任何檢視處理時,會被呼叫。 (繼承來源 Activity) |
| OnKeyUp(Keycode, KeyEvent) |
當金鑰釋放且活動內的檢視未處理時呼叫。 (繼承來源 Activity) |
| OnListItemClick(ListView, View, Int32, Int64) |
當列表中的項目被選取時,會呼叫此方法。 (繼承來源 ListActivity) |
| OnLocalVoiceInteractionStarted() |
回調表示 |
| OnLocalVoiceInteractionStopped() |
回調表示本地語音互動已停止,可能是透過呼叫 |
| OnLowMemory() |
當整體系統記憶體不足時,當正在執行的程序應該會修剪記憶體使用時,就會呼叫這個動作。 (繼承來源 Activity) |
| OnMenuItemSelected(Int32, IMenuItem) |
預設實作
|
| OnMenuOpened(Int32, IMenu) |
當使用者打開面板選單時呼叫。 (繼承來源 Activity) |
| OnMultiWindowModeChanged(Boolean, Configuration) |
當活動從全螢幕模式切換到多視窗模式,反之亦然時,系統會呼叫它。 (繼承來源 Activity) |
| OnMultiWindowModeChanged(Boolean) |
當活動從全螢幕模式切換到多視窗模式,反之亦然時,系統會呼叫它。 (繼承來源 Activity) |
| OnNavigateUp() |
每當使用者選擇從動作列在應用程式的活動階層中向上移動時,就會呼叫此方法。 (繼承來源 Activity) |
| OnNavigateUpFromChild(Activity) |
當該兒童活動嘗試向上導航時,這稱為「King News」的行為。 (繼承來源 Activity) |
| OnNewIntent(Intent, ComponentCaller) |
和 一樣 |
| OnNewIntent(Intent) |
此功能用於將 launchMode 設定為「singleTop」的活動,或當客戶端在呼叫 |
| OnOptionsItemSelected(IMenuItem) |
每當你在選項選單中選取某項時,就會呼叫這個鉤子。 (繼承來源 Activity) |
| OnOptionsMenuClosed(IMenu) |
當選項選單關閉時(使用者用返回/選單按鈕取消選單,或選取項目時)會呼叫這個鉤子。 (繼承來源 Activity) |
| OnPanelClosed(Int32, IMenu) |
for 活動的預設實作 |
| OnPause() |
當使用者不再積極互動該活動,但該活動仍可見於螢幕時,會被呼叫為活動生命週期的一部分。 (繼承來源 Activity) |
| OnPerformDirectAction(String, Bundle, CancellationSignal, IConsumer) |
這是為了執行應用程式先前定義的動作而呼叫的。 (繼承來源 Activity) |
| OnPictureInPictureModeChanged(Boolean, Configuration) |
系統在活動切換至畫中畫模式時呼叫。 (繼承來源 Activity) |
| OnPictureInPictureModeChanged(Boolean) |
系統在活動切換至畫中畫模式時呼叫。 (繼承來源 Activity) |
| OnPictureInPictureRequested() |
系統在多種情況下會呼叫此方法,若支援畫面中畫模式,則需輸入畫中畫。 (繼承來源 Activity) |
| OnPictureInPictureUiStateChanged(PictureInPictureUiState) |
當活動處於 PiP 且狀態有變化時,系統會呼叫它。 (繼承來源 Activity) |
| OnPostCreate(Bundle, PersistableBundle) |
這與 |
| OnPostCreate(Bundle) |
活動啟動完成後( |
| OnPostResume() |
活動恢復完成後(已被呼叫後 |
| OnPreferenceStartFragment(PreferenceFragment, Preference) |
當使用者點擊帶有片段類別名稱的偏好設定時,會呼叫該偏好設定。 |
| OnPreferenceTreeClick(PreferenceScreen, Preference) |
已淘汰.
待補充 |
| OnPrepareDialog(Int32, Dialog, Bundle) |
已淘汰.
提供一個在對話展示前準備管理對話的機會。 (繼承來源 Activity) |
| OnPrepareDialog(Int32, Dialog) |
已淘汰.
此方法在 API 等級 15 中被棄用。 (繼承來源 Activity) |
| OnPrepareNavigateUpTaskStack(TaskStackBuilder) |
準備合成任務堆疊,將在上行導航時由不同任務產生。 (繼承來源 Activity) |
| OnPrepareOptionsMenu(IMenu) |
請準備螢幕的標準選項選單顯示。 (繼承來源 Activity) |
| OnPreparePanel(Int32, View, IMenu) |
預設實作
|
| OnProvideAssistContent(AssistContent) |
當使用者請求協助時,會呼叫此服務,以提供與當前活動相關的內容參考。 (繼承來源 Activity) |
| OnProvideAssistData(Bundle) |
當使用者請求協助時,會呼叫此指令,以建立包含當前應用程式所有上下文的完整 |
| OnProvideKeyboardShortcuts(IList<KeyboardShortcutGroup>, IMenu, Int32) |
當目前視窗需要鍵盤快捷鍵時會被呼叫。 (繼承來源 Activity) |
| OnProvideReferrer() |
覆蓋以產生應用程式目前顯示內容所需的引薦來源。 (繼承來源 Activity) |
| OnRequestPermissionsResult(Int32, String[], Permission[], Int32) |
請求權限後回撥結果。 (繼承來源 Activity) |
| OnRequestPermissionsResult(Int32, String[], Permission[]) |
請求權限後回撥結果。 (繼承來源 Activity) |
| OnRestart() |
|
| OnRestoreInstanceState(Bundle, PersistableBundle) |
這與 |
| OnRestoreInstanceState(Bundle) |
此方法在 |
| OnResume() |
在 、 |
| OnRetainNonConfigurationInstance() |
系統在因設定變更而銷毀活動時呼叫此功能,當已知新配置會立即建立新實例時。 (繼承來源 Activity) |
| OnSaveInstanceState(Bundle, PersistableBundle) |
這與 |
| OnSaveInstanceState(Bundle) |
呼叫以在被殺死前從活動中擷取每個實例的狀態,以便恢復該狀態( |
| OnSearchRequested() |
當使用者表示想要開始搜尋時,會被呼叫。 (繼承來源 Activity) |
| OnSearchRequested(SearchEvent) |
當使用者表示想要開始搜尋時,會呼叫這個鉤子。 (繼承來源 Activity) |
| OnStart() |
在 mdash 之後 |
| OnStateNotSaved() |
在 |
| OnStop() |
當你不再被使用者看到時,會被呼叫。 (繼承來源 Activity) |
| OnTitleChanged(ICharSequence, Color) | (繼承來源 Activity) |
| OnTitleChanged(String, Color) | (繼承來源 Activity) |
| OnTopResumedActivityChanged(Boolean) |
當活動在系統中恢復的最高位置時被呼叫。 (繼承來源 Activity) |
| OnTouchEvent(MotionEvent) |
當觸控螢幕事件未被活動內任何檢視處理時呼叫。 (繼承來源 Activity) |
| OnTrackballEvent(MotionEvent) |
當軌跡球移動且未被活動內任何視角處理時,該動作被判定。 (繼承來源 Activity) |
| OnTrimMemory(TrimMemory) |
當作業系統判斷程序是刪除其程序中不需要記憶體的好時機時,會被呼叫。 (繼承來源 Activity) |
| OnUserInteraction() |
每當有按鍵、觸控或軌跡球事件被派遣到該活動時,該事件會被呼叫。 (繼承來源 Activity) |
| OnUserLeaveHint() |
當某項活動因使用者選擇即將進入背景時,作為活動生命週期的一部分被呼叫。 (繼承來源 Activity) |
| OnVisibleBehindCanceled() |
當該活動的半透明活動變得不透明或有其他活動啟動時,會被呼叫。 (繼承來源 Activity) |
| OnWindowAttributesChanged(WindowManagerLayoutParams) |
每當目前視窗屬性改變時,都會呼叫這個功能。 (繼承來源 Activity) |
| OnWindowFocusChanged(Boolean) |
當活動的節奏 |
| OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType) |
當動作模式啟動時會呼叫。 (繼承來源 Activity) |
| OnWindowStartingActionMode(ActionMode+ICallback) |
給 Activity 一個機會,讓它控制系統要求的動作模式介面。 (繼承來源 Activity) |
| OpenContextMenu(View) |
程式化地開啟特定 |
| OpenFileInput(String) |
開啟與此上下文應用程式套件相關的私人檔案以進行閱讀。 (繼承來源 ContextWrapper) |
| OpenFileOutput(String, FileCreationMode) |
開啟與此上下文應用程式套件相關的私有檔案以進行撰寫。 (繼承來源 ContextWrapper) |
| OpenOptionsMenu() |
程式化地打開選項選單。 (繼承來源 Activity) |
| OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler) |
開啟與此上下文應用程式套件相關的新私有 SQLiteDatabase。 (繼承來源 ContextWrapper) |
| OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory) |
開啟與此上下文應用程式套件相關的新私有 SQLiteDatabase。 (繼承來源 ContextWrapper) |
| OverrideActivityTransition(OverrideTransition, Int32, Int32, Int32) |
自訂活動轉換的動畫與背景色彩。 (繼承來源 Activity) |
| OverrideActivityTransition(OverrideTransition, Int32, Int32) |
自訂活動轉換的動畫。 (繼承來源 Activity) |
| OverridePendingTransition(Int32, Int32, Int32) |
在 或 |
| OverridePendingTransition(Int32, Int32) |
在 或 |
| PeekWallpaper() |
已淘汰.
(繼承來源 ContextWrapper)
|
| PostponeEnterTransition() |
當活動以 為 開始 |
| RebindService(IServiceConnection, Context+BindServiceFlags) |
重新綁定一個應用程式服務,並更新了 bind 服務旗標 (繼承來源 Context) |
| Recreate() |
讓這個活動以一個新實例重新建立。 (繼承來源 Activity) |
| RegisterActivityLifecycleCallbacks(Application+IActivityLifecycleCallbacks) |
註冊一個 Application.ActivityLifecycleCallbacks 實例,該實例僅接收該活動的生命週期回撥。 (繼承來源 Activity) |
| RegisterComponentCallbacks(IComponentCallbacks) |
在 Context 的基礎應用程式中新增 |
| RegisterDeviceIdChangeListener(IExecutor, IIntConsumer) |
新增一個裝置 ID,變更監聽器到 |
| RegisterForContextMenu(View) |
註冊一個右鍵選單,顯示給定視圖(多個視圖可顯示該右鍵選單)。 (繼承來源 Activity) |
| RegisterReceiver(BroadcastReceiver, IntentFilter, ActivityFlags) |
已淘汰.
註冊以接收意圖廣播,接收端可選擇性地暴露給即時應用程式。 更多資訊請參閱 registerReceiver(BroadcastReceiver, IntentFilter)。 預設情況下,即時應用程式無法與其他應用程式中的接收器互動,這讓你可以公開一個接收器,讓即時應用程式能互動。 欲了解更多意圖廣播資訊,請參閱 BroadcastReceiver。 截至Build.VERSION_CODES年。UPSIDE_DOWN_CAKE ,系統可在應用程式處於快取狀態時,將上下文註冊的廣播放入佇列。 當應用程式離開快取狀態,例如回到前景時,系統會傳送所有排隊的廣播。 某些廣播的多個實例可能會合併成一個廣播。 截至Build.VERSION_CODES年。ICE_CREAM_SANDWICH,使用此方法註冊的接收器會正確遵守廣播意圖所指定的 Intent.setPackage(字串)。 在此之前,這份郵件會被忽略,並送達所有匹配的註冊收件人。 使用這些資料時要小心。 參數接收器 BroadcastReceiver:此值可能為空值。 (繼承來源 ContextWrapper) |
| RegisterReceiver(BroadcastReceiver, IntentFilter, ReceiverFlags) |
註冊以接收意圖廣播,接收端可選擇性地暴露給即時應用程式。 更多資訊請參閱 registerReceiver(BroadcastReceiver, IntentFilter)。 預設情況下,即時應用程式無法與其他應用程式中的接收器互動,這讓你可以公開一個接收器,讓即時應用程式能互動。 欲了解更多意圖廣播資訊,請參閱 BroadcastReceiver。 截至Build.VERSION_CODES年。UPSIDE_DOWN_CAKE ,系統可在應用程式處於快取狀態時,將上下文註冊的廣播放入佇列。 當應用程式離開快取狀態,例如回到前景時,系統會傳送所有排隊的廣播。 某些廣播的多個實例可能會合併成一個廣播。 截至Build.VERSION_CODES年。ICE_CREAM_SANDWICH,使用此方法註冊的接收器會正確遵守廣播意圖所指定的 Intent.setPackage(字串)。 在此之前,這份郵件會被忽略,並送達所有匹配的註冊收件人。 使用這些資料時要小心。 參數接收器 BroadcastReceiver:負責處理廣播的 BroadcastReceiver。 此值可能是零值。 (繼承來源 Context) |
| RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ActivityFlags) |
已淘汰.
註冊以接收意圖廣播,以便在排程器情境下執行。 更多資訊請參見 registerReceiver(BroadcastReceiver,IntentFilter,整數)與 registerReceiver(BroadcastReceiver,IntentFilter,String,Handler)。 欲了解更多意圖廣播資訊,請參閱 BroadcastReceiver。 截至Build.VERSION_CODES年。UPSIDE_DOWN_CAKE ,系統可在應用程式處於快取狀態時,將上下文註冊的廣播放入佇列。 當應用程式離開快取狀態,例如回到前景時,系統會傳送所有排隊的廣播。 某些廣播的多個實例可能會合併成一個廣播。 截至Build.VERSION_CODES年。ICE_CREAM_SANDWICH,使用此方法註冊的接收器會正確遵守廣播意圖所指定的 Intent.setPackage(字串)。 在此之前,這份郵件會被忽略,並送達所有匹配的註冊收件人。 使用這些資料時要小心。 參數接收器 BroadcastReceiver:此值可能為空值。 (繼承來源 ContextWrapper) |
| RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ReceiverFlags) |
註冊以接收意圖廣播,以便在排程器情境下執行。 更多資訊請參見 registerReceiver(BroadcastReceiver,IntentFilter,整數)與 registerReceiver(BroadcastReceiver,IntentFilter,String,Handler)。 欲了解更多意圖廣播資訊,請參閱 BroadcastReceiver。 截至Build.VERSION_CODES年。UPSIDE_DOWN_CAKE ,系統可在應用程式處於快取狀態時,將上下文註冊的廣播放入佇列。 當應用程式離開快取狀態,例如回到前景時,系統會傳送所有排隊的廣播。 某些廣播的多個實例可能會合併成一個廣播。 截至Build.VERSION_CODES年。ICE_CREAM_SANDWICH,使用此方法註冊的接收器會正確遵守廣播意圖所指定的 Intent.setPackage(字串)。 在此之前,這份郵件會被忽略,並送達所有匹配的註冊收件人。 使用這些資料時要小心。 參數接收器 BroadcastReceiver:負責處理廣播的 BroadcastReceiver。 (繼承來源 Context) |
| RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler) |
註冊以接收意圖廣播,並在 var<排程器>/var< 的情境>下執行。 (繼承來源 ContextWrapper) |
| RegisterReceiver(BroadcastReceiver, IntentFilter) |
註冊一個廣播接收器(BroadcastReceiver)以便在主活動執行緒中執行。 (繼承來源 ContextWrapper) |
| RegisterScreenCaptureCallback(IExecutor, Activity+IScreenCaptureCallback) |
會為此活動註冊螢幕截圖回撥。 (繼承來源 Activity) |
| ReleaseInstance() |
請求釋放本地應用程式的實例,以釋放其記憶體。 (繼承來源 Activity) |
| RemoveDialog(Int32) |
已淘汰.
移除由此活動管理的對話框的內部參考。 (繼承來源 Activity) |
| RemoveStickyBroadcast(Intent) |
已淘汰.
(繼承來源 ContextWrapper)
|
| RemoveStickyBroadcastAsUser(Intent, UserHandle) |
已淘汰.
(繼承來源 ContextWrapper)
|
| ReportFullyDrawn() |
向系統報告您的應用程式已完全繪製完成,以便診斷與優化。 (繼承來源 Activity) |
| RequestDragAndDropPermissions(DragEvent) |
建立 |
| RequestFullscreenMode(FullscreenModeRequest, IOutcomeReceiver) |
請求將活動全螢幕顯示。 (繼承來源 Activity) |
| RequestOpenInBrowserEducation() |
請求顯示「在瀏覽器中開啟」的教育內容。 (繼承來源 Activity) |
| RequestPermissions(String[], Int32, Int32) |
請求授權給此應用程式。 (繼承來源 Activity) |
| RequestPermissions(String[], Int32) |
請求授權給此應用程式。 (繼承來源 Activity) |
| RequestShowKeyboardShortcuts() |
請請求顯示鍵盤快捷鍵畫面。 (繼承來源 Activity) |
| RequestVisibleBehind(Boolean) |
想要保持在上方半透明活動後方可見的活動,必須在 開始 |
| RequestWindowFeature(WindowFeatures) |
啟用擴充視窗功能。 (繼承來源 Activity) |
| RequireViewById(Int32) |
尋找由 XML 屬性識別 |
| RequireViewById<T>(Int32) | (繼承來源 Activity) |
| RevokeSelfPermissionOnKill(String) |
觸發執行時權限的非同步撤銷。 (繼承來源 Context) |
| RevokeSelfPermissionsOnKill(ICollection<String>) |
會觸發撤銷呼叫套件一個或多個權限。 (繼承來源 Context) |
| RevokeUriPermission(String, Uri, ActivityFlags) |
移除先前以 grantUriPermission(String, Uri, int) 為特定目標套件新增的存取特定內容提供者 Uri 的權限。 給定的 Uri 會匹配所有先前獲得且相同或屬於該 Uri 子路徑的 Uri。 也就是說,撤銷「content://foo/target」會同時撤銷「content://foo/target」和「content://foo/target/sub」,但不會撤銷「content://foo」。 它不會移除任何存在於更高層級的前綴補助金。 與 revokeUriPermission(Uri,int) 不同,此方法僅會撤銷透過 grantUriPermission(String, Uri, int) 明確授予的權限,且僅限於指定的套件。 任何透過其他機制(剪貼簿、活動啟動、服務啟動等)達成的配對補助金都不會被移除。 (繼承來源 ContextWrapper) |
| RevokeUriPermission(Uri, ActivityFlags) |
移除先前在 中新增的所有存取特定內容提供者 Uri 的權限。 (繼承來源 ContextWrapper) |
| RunOnUiThread(Action) | (繼承來源 Activity) |
| RunOnUiThread(IRunnable) |
在 UI 執行緒上執行指定的動作。 (繼承來源 Activity) |
| SendBroadcast(Intent, String, Bundle) |
將該意圖廣播給所有有興趣的廣播接收器,並允許執行可選的必要許可。 (繼承來源 Context) |
| SendBroadcast(Intent, String) |
將該意圖廣播給所有有興趣的廣播接收器,並允許執行可選的必要許可。 (繼承來源 ContextWrapper) |
| SendBroadcast(Intent) |
將該意圖廣播給所有有興趣的廣播接收器。 (繼承來源 ContextWrapper) |
| SendBroadcastAsUser(Intent, UserHandle, String) |
那個版本 SendBroadcast(Intent, String) 允許你指定廣播要傳送給哪個使用者。 (繼承來源 ContextWrapper) |
| SendBroadcastAsUser(Intent, UserHandle) |
那個版本 SendBroadcast(Intent) 允許你指定廣播要傳送給哪個使用者。 (繼承來源 ContextWrapper) |
| SendBroadcastWithMultiplePermissions(Intent, String[]) |
將該意圖廣播給所有有興趣的廣播接收器,允許執行一系列必要的權限。 (繼承來源 Context) |
| SendOrderedBroadcast(Intent, Int32, String, String, BroadcastReceiver, Handler, String, Bundle, Bundle) |
依序向有興趣的接收者廣播意圖。 (繼承來源 ContextWrapper) |
| SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle) |
那個版本 SendBroadcast(Intent) 允許你從廣播中接收回來的資料。 (繼承來源 ContextWrapper) |
| SendOrderedBroadcast(Intent, String, Bundle, BroadcastReceiver, Handler, Result, String, Bundle) |
那個版本 |
| SendOrderedBroadcast(Intent, String, Bundle) |
將所定意圖廣播給所有有興趣的廣播接收器,一次一個傳送,讓更多優先接收者先消化該廣播,然後再傳送給較不偏好的接收器。 (繼承來源 Context) |
| SendOrderedBroadcast(Intent, String, String, BroadcastReceiver, Handler, Result, String, Bundle) |
那個版本 |
| SendOrderedBroadcast(Intent, String) |
將所定意圖廣播給所有有興趣的廣播接收器,一次一個傳送,讓更多優先接收者先消化該廣播,然後再傳送給較不偏好的接收器。 此呼叫為非同步;它會立即回傳,並在接收器運行時繼續執行。 欲了解更多意圖廣播資訊,請參閱 BroadcastReceiver。 (繼承來源 ContextWrapper) |
| SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle) |
sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle) 的版本,允許你指定廣播將傳送給哪個使用者。 此功能不適用於未預先安裝於系統映像中的應用程式。 欲了解更多意圖廣播資訊,請參閱 BroadcastReceiver。 需要 Android。Manifest.permission.INTERACT_ACROSS_USERS (繼承來源 ContextWrapper) |
| SendStickyBroadcast(Intent, Bundle) |
執行 |
| SendStickyBroadcast(Intent) |
已淘汰.
執行 |
| SendStickyBroadcastAsUser(Intent, UserHandle) |
已淘汰.
(繼承來源 ContextWrapper)
|
| SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle) |
已淘汰.
(繼承來源 ContextWrapper)
|
| SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle) |
已淘汰.
(繼承來源 ContextWrapper)
|
| SetActionBar(Toolbar) |
設定 a |
| SetAllowCrossUidActivitySwitchFromBelow(Boolean) |
規定任務中此項以下的活動是否也能啟動其他活動或結束該任務。 (繼承來源 Activity) |
| SetContentView(Int32) |
從版面資源中設定活動內容。 (繼承來源 Activity) |
| SetContentView(View, ViewGroup+LayoutParams) |
將活動內容設為明確檢視。 (繼承來源 Activity) |
| SetContentView(View) |
將活動內容設為明確檢視。 (繼承來源 Activity) |
| SetDefaultKeyMode(DefaultKey) |
選擇此活動的預設金鑰處理方式。 (繼承來源 Activity) |
| SetEnterSharedElementCallback(SharedElementCallback) |
當 用來啟動一個活動時 |
| SetExitSharedElementCallback(SharedElementCallback) |
當 |
| SetFeatureDrawable(WindowFeatures, Drawable) |
方便打電話 |
| SetFeatureDrawableAlpha(WindowFeatures, Int32) |
方便打電話 |
| SetFeatureDrawableResource(WindowFeatures, Int32) |
方便打電話 |
| SetFeatureDrawableUri(WindowFeatures, Uri) |
方便打電話 |
| SetFinishOnTouchOutside(Boolean) |
設定該活動在超出視窗範圍時是否完成。 (繼承來源 Activity) |
| SetHandle(IntPtr, JniHandleOwnership) |
設定 Handle 屬性。 (繼承來源 Object) |
| SetHandoffEnabled(Boolean, HandoffActivityParams) |
設定此活動是否啟用了切換。 (繼承來源 Activity) |
| SetInheritShowWhenLocked(Boolean) |
指定當鎖定畫面開啟時,該活動是否 |
| SetIntent(Intent, ComponentCaller) |
改變由 |
| SetListFooter(View) |
設定一個頁尾,應該會顯示在標題列表的底部。 |
| SetLocusContext(LocusId, Bundle) |
為此活動設定。 |
| SetParentTitle(ICharSequence, ICharSequence, View+IOnClickListener) |
應該在 onCreate 之後被呼叫,以確保麵包屑(如果有的話)已經產生。 |
| SetParentTitle(String, String, View+IOnClickListener) |
應該在 onCreate 之後被呼叫,以確保麵包屑(如果有的話)已經產生。 |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| SetPersistent(Boolean) |
此會員已被棄用。 (繼承來源 Activity) |
| SetPictureInPictureParams(PictureInPictureParams) |
更新畫中畫活動的屬性,或設定在呼叫 |
| SetProgress(Int32) |
已淘汰.
設定標題中進度條的進度。 (繼承來源 Activity) |
| SetProgressBarIndeterminate(Boolean) |
已淘汰.
設定標題中的水平進度條是否應該是不確定的(圓形總是不確定的)。 (繼承來源 Activity) |
| SetProgressBarIndeterminateVisibility(Boolean) |
已淘汰.
設定標題中不確定進度條的可見度。 (繼承來源 Activity) |
| SetProgressBarVisibility(Boolean) |
已淘汰.
設定標題中進度條的可見度。 (繼承來源 Activity) |
| SetRecentsScreenshotEnabled(Boolean) |
若設為 false,系統表示絕不應截圖該活動作為近期畫面的表示。 (繼承來源 Activity) |
| SetResult(Result, Intent) |
呼叫此值以設定你的活動會回傳給呼叫者的結果。 (繼承來源 Activity) |
| SetResult(Result) |
呼叫此值以設定你的活動會回傳給呼叫者的結果。 (繼承來源 Activity) |
| SetSecondaryProgress(Int32) |
已淘汰.
在標題中設定進度條的次要進度。 (繼承來源 Activity) |
| SetSelection(Int32) |
將目前選取的清單項目與適配器資料設定到指定位置 (繼承來源 ListActivity) |
| SetShouldDockBigOverlays(Boolean) |
指定偏好接接大型疊加圖,如電視上的擴展畫中畫(見)。 |
| SetShowWhenLocked(Boolean) |
指定 |
| SetTaskDescription(ActivityManager+TaskDescription) |
將描述該任務的資訊置於 Rerecent 系統介面中。 (繼承來源 Activity) |
| SetTheme(Int32) |
為這個情境設定基本主題。 (繼承來源 ContextWrapper) |
| SetTheme(Resources+Theme) |
設定 並設定目前主題。 (繼承來源 ContextThemeWrapper) |
| SetTitle(Int32) |
更改與此活動相關的標題。 (繼承來源 Activity) |
| SetTranslucent(Boolean) |
將一個活動,特別是與 或 |
| SetTurnScreenOn(Boolean) |
指定恢復時 |
| SetVisible(Boolean) |
控制此活動的主要視窗是否可見。 (繼承來源 Activity) |
| SetVrModeEnabled(Boolean, ComponentName) |
請啟用或關閉此活動的虛擬實境(VR)模式。 (繼承來源 Activity) |
| SetWallpaper(Bitmap) |
已淘汰.
(繼承來源 ContextWrapper)
|
| SetWallpaper(Stream) |
已淘汰.
(繼承來源 ContextWrapper)
|
| ShouldDockBigOverlays() |
回傳大型覆蓋層是否應停靠在活動旁邊,依照設定 |
| ShouldShowRequestPermissionRationale(String, Int32) |
判斷你是否應該在申請許可前先展示 UI。 (繼承來源 Activity) |
| ShouldShowRequestPermissionRationale(String) |
判斷你是否應該在申請許可前先展示 UI。 (繼承來源 Activity) |
| ShouldUpRecreateTask(Intent) |
如果應用程式在使用 targetIntent 從此活動「向上」導航時,應該重新建立該任務,則會回傳為 true。 (繼承來源 Activity) |
| ShowAssist(Bundle) |
要求讓使用者看到目前的助理。 (繼承來源 Activity) |
| ShowBreadCrumbs(ICharSequence, ICharSequence) |
將麵包屑的基礎標題改成目前偏好設定。 |
| ShowBreadCrumbs(String, String) |
將麵包屑的基礎標題改成目前偏好設定。 |
| ShowDialog(Int32, Bundle) |
已淘汰.
顯示由此活動管理的對話。 (繼承來源 Activity) |
| ShowDialog(Int32) |
已淘汰.
簡單來說 |
| ShowLockTaskEscapeMessage() |
顯示系統定義的訊息,告訴使用者如何退出鎖定任務模式。 (繼承來源 Activity) |
| StartActionMode(ActionMode+ICallback, ActionModeType) |
啟動該類型的行動模式。 (繼承來源 Activity) |
| StartActionMode(ActionMode+ICallback) |
啟動預設類型的動作模式ActionMode.TYPE_PRIMARY。 (繼承來源 Activity) |
| StartActivities(Intent[], Bundle) |
啟動多項新活動。 (繼承來源 ContextWrapper) |
| StartActivities(Intent[]) |
就像 StartActivities(Intent[], Bundle) 沒有指定選項一樣。 (繼承來源 ContextWrapper) |
| StartActivity(Intent, Bundle) |
啟動一項新活動。 (繼承來源 ContextWrapper) |
| StartActivity(Intent) |
就像 StartActivity(Intent, Bundle) 沒有指定選項一樣。 (繼承來源 ContextWrapper) |
| StartActivity(Type) |
跟 startActivity(Intent, Bundle) 一樣,但沒有指定選項。 (繼承來源 Context) |
| StartActivityForResult(Intent, Int32, Bundle) |
啟動一個你希望完成後能有結果的活動。 (繼承來源 Activity) |
| StartActivityForResult(Intent, Int32) |
就像打電話 |
| StartActivityForResult(Type, Int32) |
啟動指定受管理型態的活動並請求結果。 (繼承來源 Activity) |
| StartActivityFromChild(Activity, Intent, Int32, Bundle) |
當該活動的子活動呼叫其 |
| StartActivityFromChild(Activity, Intent, Int32) |
就像打電話 |
| StartActivityFromFragment(Fragment, Intent, Int32, Bundle) |
當該活動中的片段呼叫其 |
| StartActivityFromFragment(Fragment, Intent, Int32) |
就像打電話 |
| StartActivityIfNeeded(Intent, Int32, Bundle) |
一種特殊變體,只有在需要新的活動實例來處理特定意圖時才會啟動活動。 (繼承來源 Activity) |
| StartActivityIfNeeded(Intent, Int32) |
就像打電話 |
| StartForegroundService(Intent) |
類似於 startService(Intent) ,但隱含承諾服務一旦開始執行就會呼叫 startForeground(int, android.app.Notification)。 服務會獲得相當於 ANR 間隔的時間來完成此事,否則系統會自動當機,屆時執行 SDK 版本 Build.VERSION_CODES 的裝置會記錄內部異常 ForegroundServiceDidNotStartInTimeException。S或更晚。 在較舊的 Android 版本中,會記錄一個內部例外 RemoteServiceException,並附有相應訊息。 與一般的 startService(Intent) 不同,此方法可隨時使用,無論服務的應用程式是否處於前景狀態。 注意:從 SDK 版本 Build.VERSION_CODES 開始。S,針對 SDK 版本 Build.VERSION_CODES 的應用程式。S 級以上的用戶不得從背景啟動前景服務。 詳情請參見行為變更:針對 Android 12 的應用程式。 (繼承來源 ContextWrapper) |
| StartInstrumentation(ComponentName, String, Bundle) |
開始執行一個 Instrumentation 類別。 (繼承來源 ContextWrapper) |
| StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) |
像 StartActivity(Intent, Bundle)是,但一開始就用一個意圖發送者。 (繼承來源 ContextWrapper) |
| StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32) |
與 startIntentSender(IntentSender, Intent, int, int, int, Bundle) 相同,但未指定任何選項。 (繼承來源 ContextWrapper) |
| StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) |
就像 |
| StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32) |
就像打電話 |
| StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) |
類似 |
| StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32) |
就像打電話 |
| StartLocalVoiceInteraction(Bundle) |
啟動本地語音互動會話。 (繼承來源 Activity) |
| StartLockTask() |
請求將此活動設定為一種限制使用者只能使用有限應用程式的模式。 (繼承來源 Activity) |
| StartManagingCursor(ICursor) |
已淘汰.
此方法允許活動根據活動的生命週期,替你管理該活動 |
| StartNextMatchingActivity(Intent, Bundle) |
啟動活動的特殊版本,用於替換其他活動組件時使用。 (繼承來源 Activity) |
| StartNextMatchingActivity(Intent) |
就像打電話 |
| StartPostponedEnterTransition() |
接到通知後 |
| StartPreferenceFragment(Fragment, Boolean) |
開始一個新的片段。 |
| StartPreferencePanel(String, Bundle, Int32, ICharSequence, Fragment, Int32) |
開始一個包含偏好面板的新片段。 |
| StartPreferencePanel(String, Bundle, Int32, String, Fragment, Int32) |
開始一個包含偏好面板的新片段。 |
| StartSearch(String, Boolean, Bundle, Boolean) |
這個 hook 是用來啟動搜尋介面的。 (繼承來源 Activity) |
| StartService(Intent) |
請求啟動某項應用程式服務。 (繼承來源 ContextWrapper) |
| StartWithFragment(String, Bundle, Fragment, Int32, Int32, Int32) |
啟動一個新的實例,只顯示給定的偏好片段。 |
| StartWithFragment(String, Bundle, Fragment, Int32) |
但 |
| StopLocalVoiceInteraction() |
請求終止先前使用 |
| StopLockTask() |
停止當前任務被鎖定。 (繼承來源 Activity) |
| StopManagingCursor(ICursor) |
已淘汰.
給定先前交給 |
| StopService(Intent) |
請求停止某項應用程式服務。 (繼承來源 ContextWrapper) |
| SwitchToHeader(PreferenceActivity+Header) |
當處於雙窗格模式時,切換到片段窗格以顯示指定的偏好片段。 |
| SwitchToHeader(String, Bundle) |
當處於雙窗格模式時,切換片段窗格以顯示指定的偏好片段。 |
| TakeKeyEvents(Boolean) |
請求關鍵事件與此活動同時進行。 (繼承來源 Activity) |
| ToArray<T>() |
從這個 Java 陣列包裝器建立一個受管理陣列。 (繼承來源 Object) |
| ToString() |
回傳物件的字串表示。 (繼承來源 Object) |
| TriggerSearch(String, Bundle) |
類似 |
| UnbindService(IServiceConnection) |
斷開應用程式服務。 (繼承來源 ContextWrapper) |
| UnregisterActivityLifecycleCallbacks(Application+IActivityLifecycleCallbacks) |
取消註冊應用程式。ActivityLifecycleCallbacks 先前已在 registerActivityLifecycleCallbacks(ActivityLifecycleCallbacks)註冊。 (繼承來源 Activity) |
| UnregisterComponentCallbacks(IComponentCallbacks) |
移除 |
| UnregisterDeviceIdChangeListener(IIntConsumer) |
移除一個裝置 ID,變更了 Context 中的監聽者。 (繼承來源 Context) |
| UnregisterForContextMenu(View) |
阻止顯示該視圖的右鍵選單。 (繼承來源 Activity) |
| UnregisterFromRuntime() |
將此 Java 節點從互通執行時中取消註冊。 (繼承來源 Object) |
| UnregisterReceiver(BroadcastReceiver) |
取消註冊先前註冊的廣播接收器。 (繼承來源 ContextWrapper) |
| UnregisterScreenCaptureCallback(Activity+IScreenCaptureCallback) |
取消了這個表面的螢幕截圖回撥。 (繼承來源 Activity) |
| UpdateServiceBindings(ICollection<Context.UpdateBindingParams>) |
對現有綁定進行批次更新。 (繼承來源 Context) |
| UpdateServiceGroup(IServiceConnection, Int32, Int32) |
對於先前綁定於 |
| Wait() |
導致目前執行緒等待被喚醒,通常是透過 <em>通知</><em 或 em>中斷</em> 來喚醒。 (繼承來源 Object) |
| Wait(Int64, Int32) |
會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。 (繼承來源 Object) |
| Wait(Int64) |
會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。 (繼承來源 Object) |
明確介面實作
| 名稱 | Description |
|---|---|
| IJavaPeerable.Disposed() |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| IJavaPeerable.Finalized() |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 (繼承來源 JavaObject) |
| IJavaPeerable.UnregisterFromRuntime() |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 |
擴充方法
| 名稱 | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
取得實例 |
| JavaAs<TResult>(IJavaPeerable) |
試著強制 |
| JavaCast<TResult>(IJavaObject) |
執行 Android 執行時檢查型別轉換。 |
| JavaCast<TResult>(IJavaObject) |
這是活動的基底類別,用來向使用者展示偏好的階層結構。 |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
試著強制 |