Język

LocationButtonRequest.Builder(Int32, Int32, Configuration) Constructor

Definition

Creates a new Builder with the required initial properties.

[Android.Runtime.Register(".ctor", "(IILandroid/content/res/Configuration;)V", "", ApiSince=37)]
public Builder(int width, int height, Android.Content.Res.Configuration configuration);
[<Android.Runtime.Register(".ctor", "(IILandroid/content/res/Configuration;)V", "", ApiSince=37)>]
new Android.App.PermissionUI.LocationButtonRequest.Builder : int * int * Android.Content.Res.Configuration -> Android.App.PermissionUI.LocationButtonRequest.Builder

Parameters

width
Int32

The total width of the button in pixels.

height
Int32

The total height of the button in pixels.

configuration
Configuration

The Configuration of the context hosting the button.

Attributes

Remarks

Creates a new Builder with the required initial properties.

The provided width must be at least 48dp. The provided height must be between 48dp and 136dp (inclusive). Values outside these ranges will be clamped by the system during session creation and resizing.

Android reference for android.app.permissionui.LocationButtonRequest.Builder.Builder.

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