Udostępnij za pośrednictwem


Build.VERSION_CODES.M Field

Definition

Caution

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

Field Value

Value = 23
Attributes

Remarks

M.

Released publicly as Android 6.0 in October 2015.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the Android 6.0 Marshmallow overview.

<ul> <li> Runtime permissions. Dangerous permissions are no longer granted at install time, but must be requested by the application at runtime through android.app.Activity#requestPermissions.</li> <li> Bluetooth and Wi-Fi scanning now requires holding the location permission.</li> <li> android.app.AlarmManager#setTimeZone AlarmManager.setTimeZone will fail if the given timezone is non-Olson.</li> <li> Activity transitions will only return shared elements mapped in the returned view hierarchy back to the calling activity.</li> <li> android.view.View allows a number of behaviors that may break existing apps: Canvas throws an exception if restore() is called too many times, widgets may return a hint size when returning UNSPECIFIED measure specs, and it will respect the attributes android.R.attr#foreground, android.R.attr#foregroundGravity, android.R.attr#foregroundTint, and android.R.attr#foregroundTintMode.</li> <li> android.view.MotionEvent#getButtonState MotionEvent.getButtonState will no longer report android.view.MotionEvent#BUTTON_PRIMARY and android.view.MotionEvent#BUTTON_SECONDARY as synonyms for android.view.MotionEvent#BUTTON_STYLUS_PRIMARY and android.view.MotionEvent#BUTTON_STYLUS_SECONDARY.</li> <li> android.widget.ScrollView now respects the layout param margins when measuring.</li> </ul>

Java documentation for android.os.Build.VERSION_CODES.M.

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.

Applies to