Stay organized with collections
Save and categorize content based on your preferences.
LocalTimeRangeFilter
class LocalTimeRangeFilter : TimeRangeFilter
Specification of local time range for health connect requests.
Summary
Public methods
equals
fun equals(other: Any?): Boolean
Parameters |
obj |
the reference object with which to compare. |
Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
isBounded
fun isBounded(): Boolean
Return |
Boolean |
a boolean value indicating if the filter is bound or not. This value cannot be null . |
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,["# LocalTimeRangeFilter\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLocalTimeRangeFilter\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/LocalTimeRangeFilter \"View this page in Java\") \n\n```\nclass LocalTimeRangeFilter : TimeRangeFilter\n```\n\n|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.health.connect.LocalTimeRangeFilter](#) |\n\nSpecification of local time range for health connect requests.\n\nSummary\n-------\n\n| Nested classes ||\n|---|------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/health/connect/LocalTimeRangeFilter.Builder) Builder class for [LocalTimeRangeFilter](#) |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [LocalDateTime](../../../java/time/LocalDateTime.html#)? | [getEndTime](#getEndTime())`()` \u003cbr /\u003e |\n| [LocalDateTime](../../../java/time/LocalDateTime.html#)? | [getStartTime](#getStartTime())`()` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isBounded](#isBounded())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### equals\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun equals(other: Any?): Boolean\n```\n\n| Parameters ||\n|-------|---------------------------------------------|\n| `obj` | the reference object with which to compare. |\n\n| Return ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true` if this object is the same as the obj argument; `false` otherwise. |\n\n### getEndTime\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEndTime(): LocalDateTime?\n```\n\n| Return ||\n|----------------------------------------------------------|---------------------------------------------------------|\n| [LocalDateTime](../../../java/time/LocalDateTime.html#)? | local end time of this filter This value may be `null`. |\n\n### getStartTime\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getStartTime(): LocalDateTime?\n```\n\n| Return ||\n|----------------------------------------------------------|-----------------------------------------------------------|\n| [LocalDateTime](../../../java/time/LocalDateTime.html#)? | local start time of this filter This value may be `null`. |\n\n### hashCode\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hashCode(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |\n\n### isBounded\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isBounded(): Boolean\n```\n\n| Return ||\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | a boolean value indicating if the filter is bound or not. This value cannot be `null`. |"]]