Build.VERSION_CODES.M 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.
M.
[Android.Runtime.Register("M", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)]
public const Android.OS.BuildVersionCodes M = 23;
[<Android.Runtime.Register("M", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)>]
val mutable M : Android.OS.BuildVersionCodes
欄位值
Value = 23- 屬性
備註
M.
於 2015 年 10 月以 Android 6.0 正式公開發佈。
針對此版本或後續版本的應用程式會獲得這些行為上的改變。 欲了解更多此版本資訊,請參閱 Android 6.0 棉花糖概覽。
<ul><li> Runtime permissions. 危險權限不再在安裝時授予,而是必須由應用程式在執行時透過 android.app.Activity#requestPermissions請求<。/li><li> 藍牙和 Wi-Fi 掃描現在需要先保留位置權限。<如果所定時區是非奧爾森,/li><li>android.app.AlarmManager#setTimeZone AlarmManager.setTimeZone 就會失敗。</li><li> 活動轉換只會將映射回呼叫活動的共享元素,這些元素映射回返回檢視階層。</li><li>android.view.View 允許多種行為,可能會破壞現有應用程式:如果 restore() 被呼叫過多次,Canvas 會拋出例外;小工具在回傳未指定測度規格時可能會回傳提示大小,並且會尊重屬性 android.R.attr#foreground、 android.R.attr#foregroundGravity、 android.R.attr#foregroundTint、 android.R.attr#foregroundTintMode。</li><li>android.view.MotionEvent#getButtonState MotionEvent.getButtonState 將不再報告 android.view.MotionEvent#BUTTON_PRIMARY 和 android.view.MotionEvent#BUTTON_SECONDARY 作為 和 android.view.MotionEvent#BUTTON_STYLUS_PRIMARY的同義詞android.view.MotionEvent#BUTTON_STYLUS_SECONDARY。</li><Li>android.widget.ScrollView 現在在測量時會遵守版面參數邊界。</li></ul>
Java 文件 android.os.Build.VERSION_CODES.M。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。