splash
Controls the native launch screen: keep it up while the app loads, hide it, or pick the look of the next launch.
Utilisation
Read the native splash layout.
// Read the native splash layout.
import { splash } from 'kuito';
const layout = splash.layout(); // null without a splash
if (layout) console.log(layout.logo.y + layout.logo.height, layout.brand?.width);Exports 7
Méthodes, constantes et types exposés par cet espace de noms natif.
function
layoutWhere the splash draws its logo and brand; null when the app has no splash.typeSplashFrameA rectangle of the window, in points (iOS) and dp (Android).typeSplashLayoutWhere the launch screen draws its logo and brand.functionholdKeeps the splash up after the first screen, until hide.functionhideHides the splash once the views the app rendered so far are on screen,
at once or with a fade.valuevisibleWhether the native splash is still up; watched, it turns false once it is gone.valuevariantThe variant the next launch shows, or null for the default look; it starts
as the one this launch showed.Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.