{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PullToRefreshDefaults

@ExperimentalMaterial3Api
public static class PullToRefreshDefaults


Contains the default values for PullToRefreshContainer

Summary

Public fields

static @NonNull PullToRefreshDefaults

Public methods

final void
@Composable
Indicator(
    @NonNull PullToRefreshState state,
    @NonNull Modifier modifier,
    @NonNull Color color
)

The default indicator for PullToRefreshContainer.

final @NonNull Color

The default container color for PullToRefreshContainer

final @NonNull Color

The default container color for PullToRefreshContainer

final @NonNull Dp

The default refresh threshold for rememberPullToRefreshState

final @NonNull Shape

The default shape for PullToRefreshContainer

Public fields

INSTANCE

public static @NonNull PullToRefreshDefaults INSTANCE

Public methods

Indicator

@Composable
public final void Indicator(
    @NonNull PullToRefreshState state,
    @NonNull Modifier modifier,
    @NonNull Color color
)

The default indicator for PullToRefreshContainer.

getContainerColor

@Composable
public final @NonNull Color getContainerColor()

The default container color for PullToRefreshContainer

getContentColor

@Composable
public final @NonNull Color getContentColor()

The default container color for PullToRefreshContainer

getPositionalThreshold

public final @NonNull Dp getPositionalThreshold()

The default refresh threshold for rememberPullToRefreshState

getShape

public final @NonNull Shape getShape()

The default shape for PullToRefreshContainer