Stay organized with collections
Save and categorize content based on your preferences.
CarrierFrequencyRange
class CarrierFrequencyRange
Represents a range of carrier frequencies (inclusive) on which the infrared transmitter can transmit
Summary
Public constructors |
Create a segment of a carrier frequency range.
|
Public methods |
Int |
Get the maximum (inclusive) frequency in this range segment.
|
Int |
Get the minimum (inclusive) frequency in this range segment.
|
Public constructors
CarrierFrequencyRange
CarrierFrequencyRange(
min: Int,
max: Int)
Create a segment of a carrier frequency range.
Parameters |
min |
Int: The minimum transmittable frequency in this range segment. |
max |
Int: The maximum transmittable frequency in this range segment. |
Public methods
getMaxFrequency
fun getMaxFrequency(): Int
Get the maximum (inclusive) frequency in this range segment.
getMinFrequency
fun getMinFrequency(): Int
Get the minimum (inclusive) frequency in this range segment.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ConsumerIrManager.CarrierFrequencyRange\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCarrierFrequencyRange\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/ConsumerIrManager.CarrierFrequencyRange \"View this page in Java\") \n\n```\nclass CarrierFrequencyRange\n```\n\n|---|---------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.hardware.ConsumerIrManager.CarrierFrequencyRange](#) |\n\nRepresents a range of carrier frequencies (inclusive) on which the infrared transmitter can transmit\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CarrierFrequencyRange](#CarrierFrequencyRange(kotlin.Int,%20kotlin.Int))`(`min:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `max:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Create a segment of a carrier frequency range. |\n\n| Public methods ||\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getMaxFrequency](#getMaxFrequency())`()` Get the maximum (inclusive) frequency in this range segment. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getMinFrequency](#getMinFrequency())`()` Get the minimum (inclusive) frequency in this range segment. |\n\nPublic constructors\n-------------------\n\n### CarrierFrequencyRange\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCarrierFrequencyRange(\n min: Int, \n max: Int)\n```\n\nCreate a segment of a carrier frequency range.\n\n| Parameters ||\n|-------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `min` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The minimum transmittable frequency in this range segment. |\n| `max` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The maximum transmittable frequency in this range segment. |\n\nPublic methods\n--------------\n\n### getMaxFrequency\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMaxFrequency(): Int\n```\n\nGet the maximum (inclusive) frequency in this range segment. \n\n### getMinFrequency\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMinFrequency(): Int\n```\n\nGet the minimum (inclusive) frequency in this range segment."]]