public final class

DimensionProto.ProportionalDimensionProp

extends <any>

implements DimensionProto.ProportionalDimensionPropOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.DimensionProto.ProportionalDimensionProp

Overview

 A type for a dimension that scales itself proportionally to another dimension
 such that the aspect ratio defined by the given width and height values is
 preserved.

 Note that the width and height are unitless; only their ratio is relevant.
 This allows for specifying an element's size using common ratios (e.g.
 width=4, height=3), or to allow an element to be resized proportionally based
 on the size of an underlying asset (e.g. an 800x600 image being added to a
 smaller container and resized accordingly).
 
Protobuf type androidx.wear.protolayout.proto.ProportionalDimensionProp

Summary

Fields
public static final intASPECT_RATIO_HEIGHT_FIELD_NUMBER

public static final intASPECT_RATIO_WIDTH_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public intgetAspectRatioHeight()

 The height to be used when calculating the aspect ratio ratio to preserve.

public intgetAspectRatioWidth()

 The width to be used when calculating the aspect ratio to preserve.

public static DimensionProto.ProportionalDimensionPropgetDefaultInstance()

public static DimensionProto.ProportionalDimensionProp.BuildernewBuilder()

public static DimensionProto.ProportionalDimensionProp.BuildernewBuilder(DimensionProto.ProportionalDimensionProp prototype)

public static DimensionProto.ProportionalDimensionPropparseDelimitedFrom(java.io.InputStream input)

public static DimensionProto.ProportionalDimensionPropparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionPropparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionPropparseFrom(java.nio.ByteBuffer data)

public static DimensionProto.ProportionalDimensionPropparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionPropparseFrom(com.google.protobuf.ByteString data)

public static DimensionProto.ProportionalDimensionPropparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionPropparseFrom(com.google.protobuf.CodedInputStream input)

public static DimensionProto.ProportionalDimensionPropparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionPropparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int ASPECT_RATIO_WIDTH_FIELD_NUMBER

public static final int ASPECT_RATIO_HEIGHT_FIELD_NUMBER

Methods

public int getAspectRatioWidth()

 The width to be used when calculating the aspect ratio to preserve.
 
uint32 aspect_ratio_width = 1;

Returns:

The aspectRatioWidth.

public int getAspectRatioHeight()

 The height to be used when calculating the aspect ratio ratio to preserve.
 
uint32 aspect_ratio_height = 2;

Returns:

The aspectRatioHeight.

public static DimensionProto.ProportionalDimensionProp parseFrom(java.nio.ByteBuffer data)

public static DimensionProto.ProportionalDimensionProp parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionProp parseFrom(com.google.protobuf.ByteString data)

public static DimensionProto.ProportionalDimensionProp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionProp parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionProp parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionProp parseDelimitedFrom(java.io.InputStream input)

public static DimensionProto.ProportionalDimensionProp parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DimensionProto.ProportionalDimensionProp parseFrom(com.google.protobuf.CodedInputStream input)

public static DimensionProto.ProportionalDimensionProp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static DimensionProto.ProportionalDimensionProp getDefaultInstance()

public static <any> parser()