diff --git a/splash-screen/README.md b/splash-screen/README.md index 858bc5a7b..36a239ce9 100644 --- a/splash-screen/README.md +++ b/splash-screen/README.md @@ -98,7 +98,7 @@ These config values are available: | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ----- | | **`launchShowDuration`** | number | How long to show the launch splash screen when autoHide is enabled (in ms) | 500 | 1.0.0 | | **`launchAutoHide`** | boolean | Whether to auto hide the splash after launchShowDuration. | true | 1.0.0 | -| **`launchFadeOutDuration`** | number | Duration for the fade out animation of the launch splash screen (in ms) On Android, only available when using the Android 12 Splash Screen API. | 200 | 4.2.0 | +| **`launchFadeOutDuration`** | number | Duration for the fade out animation of the launch splash screen (in ms) On Android, only available when using the Android 12 Splash Screen API. | 0 | 4.2.0 | | **`backgroundColor`** | string | Color of the background of the Splash Screen in hex format, #RRGGBB or #RRGGBBAA. Doesn't work if `useDialog` is true or on launch when using the Android 12 API. | | 1.0.0 | | **`androidSplashResourceName`** | string | Name of the resource to be used as Splash Screen. Doesn't work on launch when using the Android 12 API. Only available on Android. | splash | 1.0.0 | | **`androidScaleType`** | 'CENTER' \| 'CENTER_CROP' \| 'CENTER_INSIDE' \| 'FIT_CENTER' \| 'FIT_END' \| 'FIT_START' \| 'FIT_XY' \| 'MATRIX' | The [ImageView.ScaleType](https://developer.android.com/reference/android/widget/ImageView.ScaleType) used to scale the Splash Screen image. Doesn't work if `useDialog` is true or on launch when using the Android 12 API. Only available on Android. | FIT_XY | 1.0.0 | diff --git a/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreenConfig.java b/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreenConfig.java index a8dd69ddd..8523c0762 100644 --- a/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreenConfig.java +++ b/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreenConfig.java @@ -11,7 +11,7 @@ public class SplashScreenConfig { private Integer launchShowDuration = 500; private boolean launchAutoHide = true; private Integer launchFadeInDuration = 0; - private Integer launchFadeOutDuration = 200; + private Integer launchFadeOutDuration = 0; private String resourceName = "splash"; private boolean immersive = false; private boolean fullScreen = false; diff --git a/splash-screen/src/definitions.ts b/splash-screen/src/definitions.ts index 600ba7778..f06dcc9da 100644 --- a/splash-screen/src/definitions.ts +++ b/splash-screen/src/definitions.ts @@ -30,7 +30,7 @@ declare module '@capacitor/cli' { * On Android, only available when using the Android 12 Splash Screen API. * * @since 4.2.0 - * @default 200 + * @default 0 * @example 3000 */ launchFadeOutDuration?: number;