Verwendung

Connect a reporting service

Dieser Typ wird verwendet von defineModule

tsx
// modules/crash-service/crash-service.ts
import { defineModule, fn } from 'kuito';

export default defineModule('CrashService', {
  start: fn.main<(key: string) => Promise<void>>(),
  ios: { class: 'CrashServiceModule' },
  android: { class: 'com.example.myapp.modules.crashservice.CrashServiceModule' },
});

Typdeklaration

ts
export interface IosNeeds {
  /** The `final` Swift class conforming to the generated `<Name>Spec`, in `ios/`. */
  class: string;
  /** The class's `@MainActor static func launch()` runs as the app finishes launching (docs/native-modules.md#launch). */
  launch?: boolean;
  /** Info.plist keys, such as usage descriptions. */
  infoPlist?: Record<string, PlistNeed>;
  /** System frameworks the app target links, like `CoreHaptics`. */
  frameworks?: string[];
  swiftPackages?: SwiftPackageNeed[];
}

Mitglieder 5

NameTypErforderlichBeschreibung
classstringJaThe final Swift class conforming to the generated <Name>Spec, in ios/.
launchbooleanNeinThe class's @MainActor static func launch() runs as the app finishes launching (docs/native-modules.md#launch).
infoPlistRecord<string, PlistNeed>NeinInfo.plist keys, such as usage descriptions.
frameworksstring[]NeinSystem frameworks the app target links, like CoreHaptics.
swiftPackagesSwiftPackageNeed[]Nein—
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.