Stay organized with collections
Save and categorize content based on your preferences.
PaperSize
class PaperSize
A class that represents the size of letter head used in the country
Summary
Public methods |
Int |
Returns the height of the paper
|
Int |
Returns the width of the paper
|
Public methods
getHeight
fun getHeight(): Int
Returns the height of the paper
getWidth
fun getWidth(): Int
Returns the width of the paper
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# LocaleData.PaperSize\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPaperSize\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/util/LocaleData.PaperSize \"View this page in Java\") \n\n```\nclass PaperSize\n```\n\n|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.icu.util.LocaleData.PaperSize](#) |\n\nA class that represents the size of letter head used in the country\n\nSummary\n-------\n\n| Public methods ||\n|----------------------------------------------------------------------------|---------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getHeight](#getHeight())`()` Returns the height of the paper |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getWidth](#getWidth())`()` Returns the width of the paper |\n\nPublic methods\n--------------\n\n### getHeight\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getHeight(): Int\n```\n\nReturns the height of the paper\n\n| Return ||\n|----------------------------------------------------------------------------|------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the height |\n\n### getWidth\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getWidth(): Int\n```\n\nReturns the width of the paper\n\n| Return ||\n|----------------------------------------------------------------------------|-----------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the width |"]]