Language

AdaptiveIconDrawable.SetOpacity(Int32) Method

Definition

Records an opacity value in internal state. The base Opacity implementation still returns the numeric value of Translucent.

[Android.Runtime.Register("setOpacity", "(I)V", "GetSetOpacity_IHandler", ApiSince=26)]
public virtual void SetOpacity(int opacity);
[<Android.Runtime.Register("setOpacity", "(I)V", "GetSetOpacity_IHandler", ApiSince=26)>]
abstract member SetOpacity : int -> unit
override this.SetOpacity : int -> unit

Parameters

opacity
Int32

The opacity value to record.

Attributes

Remarks

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