SteeringManifest


@UnstableApi
public final class SteeringManifest


Represents a steering manifest.

See Content Steering specification.

Summary

Nested types

Represents a pathway clone.

Represents a definition of URI modifications to apply during the pathway cloning process.

Public fields

final ImmutableList<SteeringManifest.PathwayClone>

The list of PathwayClone objects.

final ImmutableList<String>

The priority list of pathway IDs.

final @Nullable Uri

The optional Uri that the client must use for future steering manifest requests.

final long

The duration in milliseconds that the client must wait after loading the steering manifest before reloading it.

final int

The version of the steering manifest.

Public constructors

SteeringManifest(
    int version,
    long timeToLiveMs,
    @Nullable Uri reloadUri,
    List<String> pathwayPriority,
    List<SteeringManifest.PathwayClone> pathwayClones
)

Constructs an instance.

Public methods

boolean
int

Public fields

pathwayClones

public final ImmutableList<SteeringManifest.PathwayClonepathwayClones

The list of PathwayClone objects.

pathwayPriority

public final ImmutableList<StringpathwayPriority

The priority list of pathway IDs. The pathway IDs are ordered by pathway preference, with the first being most preferred. This list must not be empty.

reloadUri

public final @Nullable Uri reloadUri

The optional Uri that the client must use for future steering manifest requests. It may be relative to the current Steering Manifest URI. Null if not present.

timeToLiveMs

public final long timeToLiveMs

The duration in milliseconds that the client must wait after loading the steering manifest before reloading it. TIME_UNSET if not present.

version

public final int version

The version of the steering manifest.

Public constructors

SteeringManifest

public SteeringManifest(
    int version,
    long timeToLiveMs,
    @Nullable Uri reloadUri,
    List<String> pathwayPriority,
    List<SteeringManifest.PathwayClone> pathwayClones
)

Constructs an instance.

Parameters
int version

See version.

long timeToLiveMs

See timeToLiveMs.

@Nullable Uri reloadUri

See reloadUri.

List<String> pathwayPriority

See pathwayPriority.

List<SteeringManifest.PathwayClone> pathwayClones

See pathwayClones.

Public methods

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()