config.IOS_BACKGROUND_MODES
The UIBackgroundModes values ios.backgroundModes accepts, from audio and location to push-to-talk.
Utilização
Validate a configuration in an app-development tool.
// Validate a configuration in an app-development tool.
import { resolveConfig, SETTING_DEFAULTS, IOS_BACKGROUND_MODES } from 'kuito/config';
const config = resolveConfig(
{
name: 'Notes',
ios: { bundleIdentifier: 'com.example.notes' },
android: { applicationId: 'com.example.notes' },
environments: { staging: { idSuffix: '.staging' } },
},
'/project/kuito.config.ts',
'staging',
);
console.log(config.ios.bundleIdentifier, config.splash, config.icon);
console.log(SETTING_DEFAULTS.minSdk, IOS_BACKGROUND_MODES);Propriedades e métodos 12
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
0 | "audio" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
1 | "location" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
2 | "voip" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
3 | "fetch" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
4 | "remote-notification" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
5 | "processing" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
6 | "external-accessory" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
7 | "bluetooth-central" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
8 | "bluetooth-peripheral" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
9 | "nearby-interaction" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
10 | "push-to-talk" | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
length | 11 | Sim | — Predefinição: [
'audio',
'location',
'voip',
'fetch',
'remote-notification',
'processing',
'external-accessory',
'bluetooth-central',
'bluetooth-peripheral',
'nearby-interaction',
'push-to-talk',
] as const |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.