# ConsumerIrManager.CarrierFrequencyRange

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CarrierFrequencyRange

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/ConsumerIrManager.CarrierFrequencyRange "View this page in Java")  

```
class CarrierFrequencyRange
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                       ||
| ↳ | [android.hardware.ConsumerIrManager.CarrierFrequencyRange](https://developer.android.com/reference/kotlin/android/hardware/ConsumerIrManager.CarrierFrequencyRange#) |

Represents a range of carrier frequencies (inclusive) on which the infrared transmitter can transmit

## Summary

|                                                                                                                                                                                              Public constructors                                                                                                                                                                                               ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [CarrierFrequencyRange](https://developer.android.com/reference/kotlin/android/hardware/ConsumerIrManager.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. |

|                                                                                                                                      Public methods                                                                                                                                       ||
|----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getMaxFrequency](https://developer.android.com/reference/kotlin/android/hardware/ConsumerIrManager.CarrierFrequencyRange#getMaxFrequency())`()` Get the maximum (inclusive) frequency in this range segment. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getMinFrequency](https://developer.android.com/reference/kotlin/android/hardware/ConsumerIrManager.CarrierFrequencyRange#getMinFrequency())`()` Get the minimum (inclusive) frequency in this range segment. |

## Public constructors

### CarrierFrequencyRange

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
CarrierFrequencyRange(
    min: Int, 
    max: Int)
```

Create a segment of a carrier frequency range.

|                                                                  Parameters                                                                  ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------|
| `min` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The minimum transmittable frequency in this range segment. |
| `max` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The maximum transmittable frequency in this range segment. |

## Public methods

### getMaxFrequency

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getMaxFrequency(): Int
```

Get the maximum (inclusive) frequency in this range segment.  

### getMinFrequency

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getMinFrequency(): Int
```

Get the minimum (inclusive) frequency in this range segment.