Language

ILocationButtonSession.Resize(Int32, Int32) Method

Definition

Notifies the remote service that the button's container view has been resized.

[Android.Runtime.Register("resize", "(II)V", "GetResize_IIHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void Resize(int width, int height);
[<Android.Runtime.Register("resize", "(II)V", "GetResize_IIHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member Resize : int * int -> unit

Parameters

width
Int32

The new width of the button's container, in pixels.

height
Int32

The new height of the button's container, in pixels.

Attributes

Remarks

Notifies the remote service that the button's container view has been resized.

The remote service will re-layout the button to fit within the new dimensions.

See LocationButtonRequest.Builder.Builder(int,int,Configuration) for width and height input constraints.

Android reference for android.app.permissionui.LocationButtonSession.resize.

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