SexualActivityRecord


class SexualActivityRecord : Record


Captures an occurrence of sexual activity. Each record is a single occurrence. ProtectionUsed field is optional.

Summary

Public constructors

SexualActivityRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    protectionUsed: Int,
    metadata: Metadata
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

open Metadata

Set of common metadata associated with the written record.

Int

Whether protection was used during sexual activity.

open Instant

Time the record happened.

open ZoneOffset?

User experienced zone offset at time, or null if unknown.

Constants

PROTECTION_USED_PROTECTED

const val PROTECTION_USED_PROTECTED = 1: Int

PROTECTION_USED_UNKNOWN

const val PROTECTION_USED_UNKNOWN = 0: Int

PROTECTION_USED_UNPROTECTED

const val PROTECTION_USED_UNPROTECTED = 2: Int

Public constructors

SexualActivityRecord

Added in 1.1.0-alpha10
SexualActivityRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    protectionUsed: Int = PROTECTION_USED_UNKNOWN,
    metadata: Metadata = Metadata.EMPTY
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

metadata

Added in 1.1.0-alpha10
open val metadataMetadata

Set of common metadata associated with the written record.

protectionUsed

Added in 1.1.0-alpha10
val protectionUsedInt

Whether protection was used during sexual activity. Optional field, null if unknown. Allowed values: Protection.

time

Added in 1.1.0-alpha10
open val timeInstant

Time the record happened.

zoneOffset

Added in 1.1.0-alpha10
open val zoneOffsetZoneOffset?

User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.