You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platforms/android/README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,13 +168,15 @@ Configure global presentation defaults before presenting checkout:
168
168
```kotlin
169
169
ShopifyCheckoutKit.configure {
170
170
it.colorScheme =ColorScheme.Automatic()
171
+
it.sheetStyle =CheckoutSheetStyle()
171
172
it.logLevel =LogLevel.ERROR
172
173
}
173
174
```
174
175
175
176
| Option | Default | Purpose |
176
177
| --- | --- | --- |
177
178
|`colorScheme`|`ColorScheme.Automatic()`| Use device appearance, force `Light` or `Dark`, or use `Web` to match web checkout branding. |
179
+
|`sheetStyle`|`CheckoutSheetStyle()`| Customize native sheet chrome such as the top gap, corner radius, title alignment, toolbar elevation, close icon styling, and the optional drag handle. |
178
180
|`logLevel`|`LogLevel.WARN`| SDK logging verbosity. Use `LogLevel.DEBUG` during integration. |
179
181
|`preloading`|`Preloading(enabled = true)`| Enables best-effort checkout preloading before presentation. |
Copy file name to clipboardExpand all lines: platforms/android/lib/api/lib.api
+51-3Lines changed: 51 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,51 @@ public final class com/shopify/checkoutkit/CheckoutProtocol$Client {
90
90
public final fun on (Lcom/shopify/ucp/embedded/checkout/RequestDescriptor;Lkotlin/jvm/functions/Function1;)Lcom/shopify/checkoutkit/CheckoutProtocol$Client;
91
91
}
92
92
93
+
public final class com/shopify/checkoutkit/CheckoutSheetStyle {
94
+
public fun <init> ()V
95
+
public fun <init> (F)V
96
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;)V
97
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;F)V
98
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;)V
99
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;)V
100
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;)V
101
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;Z)V
102
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;ZZ)V
103
+
public fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;ZZF)V
104
+
public synthetic fun <init> (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;ZZFILkotlin/jvm/internal/DefaultConstructorMarker;)V
105
+
public final fun component1 ()F
106
+
public final fun component2 ()Lcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;
107
+
public final fun component3 ()F
108
+
public final fun component4 ()Lcom/shopify/checkoutkit/DrawableResource;
109
+
public final fun component5 ()Lcom/shopify/checkoutkit/Color;
110
+
public final fun component6 ()Lcom/shopify/checkoutkit/Color;
111
+
public final fun component7 ()Z
112
+
public final fun component8 ()Z
113
+
public final fun component9 ()F
114
+
public final fun copy (FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;ZZF)Lcom/shopify/checkoutkit/CheckoutSheetStyle;
115
+
public static synthetic fun copy$default (Lcom/shopify/checkoutkit/CheckoutSheetStyle;FLcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;FLcom/shopify/checkoutkit/DrawableResource;Lcom/shopify/checkoutkit/Color;Lcom/shopify/checkoutkit/Color;ZZFILjava/lang/Object;)Lcom/shopify/checkoutkit/CheckoutSheetStyle;
116
+
public fun equals (Ljava/lang/Object;)Z
117
+
public final fun getCloseIcon ()Lcom/shopify/checkoutkit/DrawableResource;
118
+
public final fun getCloseIconTint ()Lcom/shopify/checkoutkit/Color;
119
+
public final fun getCornerRadiusDp ()F
120
+
public final fun getDragHandleVisible ()Z
121
+
public final fun getDragToDismissEnabled ()Z
122
+
public final fun getScrimColor ()Lcom/shopify/checkoutkit/Color;
123
+
public final fun getTitleAlignment ()Lcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;
124
+
public final fun getToolbarElevationDp ()F
125
+
public final fun getTopGapDp ()F
126
+
public fun hashCode ()I
127
+
public fun toString ()Ljava/lang/String;
128
+
}
129
+
130
+
public final class com/shopify/checkoutkit/CheckoutSheetTitleAlignment : java/lang/Enum {
131
+
public static final field CENTER Lcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;
132
+
public static final field START Lcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;
133
+
public static fun getEntries ()Lkotlin/enums/EnumEntries;
134
+
public static fun valueOf (Ljava/lang/String;)Lcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;
135
+
public static fun values ()[Lcom/shopify/checkoutkit/CheckoutSheetTitleAlignment;
136
+
}
137
+
93
138
public class com/shopify/checkoutkit/CheckoutUnavailableException : com/shopify/checkoutkit/CheckoutException {
94
139
public static final field CLIENT_ERROR Ljava/lang/String;
95
140
public static final field Companion Lcom/shopify/checkoutkit/CheckoutUnavailableException$Companion;
@@ -374,19 +419,22 @@ public final class com/shopify/checkoutkit/ColorsBuilder {
374
419
public final class com/shopify/checkoutkit/Configuration {
375
420
public fun <init> ()V
376
421
public final fun component1 ()Lcom/shopify/checkoutkit/ColorScheme;
377
-
public final fun component2 ()Lcom/shopify/checkoutkit/Platform;
378
-
public final fun component3 ()Lcom/shopify/checkoutkit/LogLevel;
379
-
public final fun component4 ()Lcom/shopify/checkoutkit/Preloading;
422
+
public final fun component2 ()Lcom/shopify/checkoutkit/CheckoutSheetStyle;
423
+
public final fun component3 ()Lcom/shopify/checkoutkit/Platform;
424
+
public final fun component4 ()Lcom/shopify/checkoutkit/LogLevel;
425
+
public final fun component5 ()Lcom/shopify/checkoutkit/Preloading;
380
426
public fun equals (Ljava/lang/Object;)Z
381
427
public final fun getColorScheme ()Lcom/shopify/checkoutkit/ColorScheme;
382
428
public final fun getLogLevel ()Lcom/shopify/checkoutkit/LogLevel;
383
429
public final fun getPlatform ()Lcom/shopify/checkoutkit/Platform;
384
430
public final fun getPreloading ()Lcom/shopify/checkoutkit/Preloading;
431
+
public final fun getSheetStyle ()Lcom/shopify/checkoutkit/CheckoutSheetStyle;
385
432
public fun hashCode ()I
386
433
public final fun setColorScheme (Lcom/shopify/checkoutkit/ColorScheme;)V
387
434
public final fun setLogLevel (Lcom/shopify/checkoutkit/LogLevel;)V
388
435
public final fun setPlatform (Lcom/shopify/checkoutkit/Platform;)V
389
436
public final fun setPreloading (Lcom/shopify/checkoutkit/Preloading;)V
437
+
public final fun setSheetStyle (Lcom/shopify/checkoutkit/CheckoutSheetStyle;)V
0 commit comments