Builder


class Builder
kotlin.Any
   ↳ android.health.connect.datatypes.PlannedExerciseSessionRecord.Builder

Builder class for PlannedExerciseSessionRecord.

Summary

Public constructors
Builder(metadata: Metadata, exerciseType: Int, startTime: Instant, endTime: Instant)

Builder(metadata: Metadata, exerciseType: Int, startDate: LocalDate, duration: Duration)

Public methods
PlannedExerciseSessionRecord.Builder

Adds a block to this planned session.

PlannedExerciseSessionRecord

Returns PlannedExerciseSessionRecord.

PlannedExerciseSessionRecord.Builder

Clears the blocks of this planned session.

PlannedExerciseSessionRecord.Builder

Sets the start zone offset of this record to system default.

PlannedExerciseSessionRecord.Builder

Sets the start zone offset of this record to system default.

PlannedExerciseSessionRecord.Builder

Sets the blocks of this planned session.

PlannedExerciseSessionRecord.Builder
setEndTime(endTime: Instant)

Sets the planned end time of the session.

PlannedExerciseSessionRecord.Builder
setEndZoneOffset(endZoneOffset: ZoneOffset)

Sets the zone offset of when the workout should end.

PlannedExerciseSessionRecord.Builder
setExerciseType(exerciseType: Int)

Sets the exercise type.

PlannedExerciseSessionRecord.Builder
setMetadata(metadata: Metadata)

Set the metadata for the record.

PlannedExerciseSessionRecord.Builder

Sets notes for this activity.

PlannedExerciseSessionRecord.Builder
setStartTime(startTime: Instant)

Sets the planned start time of the session.

PlannedExerciseSessionRecord.Builder
setStartZoneOffset(startZoneOffset: ZoneOffset)

Sets the zone offset of when the workout should start.

PlannedExerciseSessionRecord.Builder

Sets a title of this planned session.

Public constructors

Builder

Builder(
    metadata: Metadata,
    exerciseType: Int,
    startTime: Instant,
    endTime: Instant)
Parameters
metadata Metadata: Metadata to be associated with the record. See Metadata. This value cannot be null.
exerciseType Int: Type of exercise (e.g. walking, swimming). Allowed values: ExerciseSessionType. Value is android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_UNKNOWN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BADMINTON, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BASEBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BASKETBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BIKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BIKING_STATIONARY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BOOT_CAMP, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BOXING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_CALISTHENICS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_CRICKET, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_DANCING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ELLIPTICAL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_EXERCISE_CLASS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FENCING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FOOTBALL_AUSTRALIAN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FRISBEE_DISC, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GOLF, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GUIDED_BREATHING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GYMNASTICS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HANDBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HIKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ICE_HOCKEY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ICE_SKATING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_MARTIAL_ARTS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PADDLING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PARAGLIDING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PILATES, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RACQUETBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROCK_CLIMBING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROLLER_HOCKEY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROWING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROWING_MACHINE, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUGBY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUNNING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUNNING_TREADMILL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SAILING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SCUBA_DIVING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SKATING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SKIING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SNOWBOARDING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SNOWSHOEING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SOCCER, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SOFTBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SQUASH, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STAIR_CLIMBING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STAIR_CLIMBING_MACHINE, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STRENGTH_TRAINING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STRETCHING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SURFING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SWIMMING_OPEN_WATER, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SWIMMING_POOL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_TABLE_TENNIS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_TENNIS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_VOLLEYBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WALKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WATER_POLO, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WEIGHTLIFTING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WHEELCHAIR, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_OTHER_WORKOUT, or android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_YOGA
startTime Instant: Expected start time of this planned session. This value cannot be null.
endTime Instant: Expected end time of this planned session. This value cannot be null.

Builder

Builder(
    metadata: Metadata,
    exerciseType: Int,
    startDate: LocalDate,
    duration: Duration)
Parameters
metadata Metadata: Metadata to be associated with the record. See Metadata. This value cannot be null.
exerciseType Int: Type of exercise (e.g. walking, swimming). Required field. Allowed values: ExerciseSessionType. Value is android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_UNKNOWN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BADMINTON, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BASEBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BASKETBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BIKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BIKING_STATIONARY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BOOT_CAMP, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BOXING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_CALISTHENICS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_CRICKET, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_DANCING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ELLIPTICAL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_EXERCISE_CLASS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FENCING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FOOTBALL_AUSTRALIAN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FRISBEE_DISC, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GOLF, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GUIDED_BREATHING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GYMNASTICS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HANDBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HIKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ICE_HOCKEY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ICE_SKATING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_MARTIAL_ARTS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PADDLING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PARAGLIDING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PILATES, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RACQUETBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROCK_CLIMBING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROLLER_HOCKEY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROWING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROWING_MACHINE, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUGBY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUNNING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUNNING_TREADMILL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SAILING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SCUBA_DIVING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SKATING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SKIING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SNOWBOARDING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SNOWSHOEING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SOCCER, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SOFTBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SQUASH, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STAIR_CLIMBING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STAIR_CLIMBING_MACHINE, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STRENGTH_TRAINING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STRETCHING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SURFING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SWIMMING_OPEN_WATER, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SWIMMING_POOL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_TABLE_TENNIS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_TENNIS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_VOLLEYBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WALKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WATER_POLO, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WEIGHTLIFTING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WHEELCHAIR, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_OTHER_WORKOUT, or android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_YOGA
startDate LocalDate: The start date of this planned session. The underlying time of the session will be set to noon of the specified day. The end time will be determined by adding the duration to this. This value cannot be null.
duration Duration: The expected duration of the planned session. This value cannot be null.

Public methods

addBlock

fun addBlock(block: PlannedExerciseBlock): PlannedExerciseSessionRecord.Builder

Adds a block to this planned session..

Parameters
block PlannedExerciseBlock: An PlannedExerciseBlock to add to this planned session.. This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

build

fun build(): PlannedExerciseSessionRecord

Returns PlannedExerciseSessionRecord.

Return
PlannedExerciseSessionRecord This value cannot be null.

clearBlocks

fun clearBlocks(): PlannedExerciseSessionRecord.Builder

Clears the blocks of this planned session.

Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

clearEndZoneOffset

fun clearEndZoneOffset(): PlannedExerciseSessionRecord.Builder

Sets the start zone offset of this record to system default.

Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

clearStartZoneOffset

fun clearStartZoneOffset(): PlannedExerciseSessionRecord.Builder

Sets the start zone offset of this record to system default.

Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setBlocks

fun setBlocks(blocks: MutableList<PlannedExerciseBlock!>): PlannedExerciseSessionRecord.Builder

Sets the blocks of this planned session.

Parameters
blocks MutableList<PlannedExerciseBlock!>: A list of PlannedExerciseBlock to set for this planned session. This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setEndTime

fun setEndTime(endTime: Instant): PlannedExerciseSessionRecord.Builder

Sets the planned end time of the session.

Parameters
endTime Instant: This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setEndZoneOffset

fun setEndZoneOffset(endZoneOffset: ZoneOffset): PlannedExerciseSessionRecord.Builder

Sets the zone offset of when the workout should end.

Parameters
endZoneOffset ZoneOffset: This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setExerciseType

fun setExerciseType(exerciseType: Int): PlannedExerciseSessionRecord.Builder

Sets the exercise type.

Parameters
exerciseType Int: Value is android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_UNKNOWN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BADMINTON, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BASEBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BASKETBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BIKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BIKING_STATIONARY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BOOT_CAMP, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_BOXING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_CALISTHENICS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_CRICKET, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_DANCING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ELLIPTICAL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_EXERCISE_CLASS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FENCING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FOOTBALL_AUSTRALIAN, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_FRISBEE_DISC, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GOLF, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GUIDED_BREATHING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_GYMNASTICS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HANDBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_HIKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ICE_HOCKEY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ICE_SKATING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_MARTIAL_ARTS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PADDLING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PARAGLIDING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_PILATES, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RACQUETBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROCK_CLIMBING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROLLER_HOCKEY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROWING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_ROWING_MACHINE, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUGBY, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUNNING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_RUNNING_TREADMILL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SAILING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SCUBA_DIVING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SKATING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SKIING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SNOWBOARDING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SNOWSHOEING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SOCCER, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SOFTBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SQUASH, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STAIR_CLIMBING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STAIR_CLIMBING_MACHINE, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STRENGTH_TRAINING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_STRETCHING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SURFING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SWIMMING_OPEN_WATER, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_SWIMMING_POOL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_TABLE_TENNIS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_TENNIS, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_VOLLEYBALL, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WALKING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WATER_POLO, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WEIGHTLIFTING, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_WHEELCHAIR, android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_OTHER_WORKOUT, or android.health.connect.datatypes.ExerciseSessionType#EXERCISE_SESSION_TYPE_YOGA
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setMetadata

fun setMetadata(metadata: Metadata): PlannedExerciseSessionRecord.Builder

Set the metadata for the record.

Parameters
metadata Metadata: This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setNotes

fun setNotes(notes: CharSequence?): PlannedExerciseSessionRecord.Builder

Sets notes for this activity.

Parameters
notes CharSequence?: Notes for this activity. This value may be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setStartTime

fun setStartTime(startTime: Instant): PlannedExerciseSessionRecord.Builder

Sets the planned start time of the session.

Parameters
startTime Instant: This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setStartZoneOffset

fun setStartZoneOffset(startZoneOffset: ZoneOffset): PlannedExerciseSessionRecord.Builder

Sets the zone offset of when the workout should start.

Parameters
startZoneOffset ZoneOffset: This value cannot be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.

setTitle

fun setTitle(title: CharSequence?): PlannedExerciseSessionRecord.Builder

Sets a title of this planned session.

Parameters
title CharSequence?: Title of this activity. This value may be null.
Return
PlannedExerciseSessionRecord.Builder This value cannot be null.