PassiveMonitoringUpdate

public data final class PassiveMonitoringUpdate


Represents an update from Passive tracking.

Provides DataPoint s associated with the Passive tracking, in addition to data related to the user's UserActivityState.

Summary

Public fields

final @NonNull List<@NonNull DataPoint>

List of DataPoint s from Passive tracking.

final @NonNull List<@NonNull UserActivityInfo>

The UserActivityInfo of the user from Passive tracking.

Public constructors

PassiveMonitoringUpdate(
    @NonNull List<@NonNull DataPoint> dataPoints,
    @NonNull List<@NonNull UserActivityInfo> userActivityInfoUpdates
)

Public methods

int
final void

Puts the state as an extra into a given Intent.

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

dataPoints

@NonNull
public final @NonNull List<@NonNull DataPointdataPoints

List of DataPoint s from Passive tracking.

userActivityInfoUpdates

@NonNull
public final @NonNull List<@NonNull UserActivityInfouserActivityInfoUpdates

The UserActivityInfo of the user from Passive tracking.

Public constructors

PassiveMonitoringUpdate

public final PassiveMonitoringUpdate(
    @NonNull List<@NonNull DataPoint> dataPoints,
    @NonNull List<@NonNull UserActivityInfo> userActivityInfoUpdates
)

Public methods

describeContents

@NonNull
public int describeContents()

putToIntent

@NonNull
public final void putToIntent(@NonNull Intent intent)

Puts the state as an extra into a given Intent. The state can then be obtained from the intent via PassiveMonitoringUpdate.fromIntent.

writeToParcel

@NonNull
public void writeToParcel(@NonNull Parcel dest, int flags)