StaffStartBrandSnapPlaysBlock

fun StaffStartBrandSnapPlaysBlock(conditions: BrandSnapPlaysBlockCondition, useDarkTheme: Boolean = false, onTapSnapPlay: (snapPlayId: Int) -> Unit, onFavoriteAttemptWithoutLogin: () -> Unit = {}, ssAppViewModel: SSAppViewModel = provideSSAppViewModel(), viewModel: BrandSnapPlaysBlockViewModel = viewModel(key = conditions.conditionsUniqueKey()) { BrandSnapPlaysBlockViewModel( ssAppViewModel, conditions.toSnapPlaySearchCondition(), sort = conditions.order.sortOrder, ) })(source)

任意のブランドページの一部としてSnapPlay一覧を表示するBlock

Parameters

conditions

表示するSnapPlayの検索条件

useDarkTheme

Optional

onTapSnapPlay

SnapPlayタップ時のコールバック

onFavoriteAttemptWithoutLogin

ログインしていない状態でお気に入り操作をした時のコールバック

使用例

StaffStartBrandSnapPlaysBlock(
conditions = BrandSnapPlaysBlockCondition(
labelId = labelId,
coordinateGenre = CoordinateGenre.MALE,
tags = setOf("テストタグ2", "タグランキングテスト"),
order = Order.POPULARITY,
),
useDarkTheme = isSystemInDarkTheme(),
onTapSnapPlay = { snapPlayId ->
// SnapPlayタップ時の処理
},
onFavoriteAttemptWithoutLogin = { baseProductCode ->
// ログインを促す処理
}
)