@nativescript-community/sentry
    Preparing search index...

    Class NativescriptClient

    The Sentry React Native SDK Client.

    • NativescriptOptions for documentation on configuration options.
    • SentryClient for usage documentation.

    Hierarchy

    • Client<NativescriptClientOptions>
      • NativescriptClient
    Index

    Constructors

    • Creates a new React Native SDK instance.

      Parameters

      • options: NativescriptClientOptions

        Configuration options for this SDK.

      Returns NativescriptClient

    Methods

    • Parameters

      • envelope: Envelope

      Returns void

    • Sends user feedback to Sentry.

      Parameters

      • feedback: UserFeedback

      Returns void

    • Returns Promise<boolean>

    • Parameters

      • exception: unknown
      • Optionalhint: EventHint

      Returns Promise<Event>

    • Parameters

      • message: string
      • Optionallevel: SeverityLevel
      • Optionalhint: EventHint

      Returns PromiseLike<Event>

    • Wait for all events to be sent or the timeout to expire, whichever comes first.

      Parameters

      • Optionaltimeout: number

        Maximum time in ms the client should wait for events to be flushed. Omitting this parameter will cause the client to wait until all events are sent before resolving the promise.

      Returns Promise<boolean>

      A promise that will resolve with true if all events are sent before the timeout, or false if there are still events in the queue when the timeout is reached.

    • If native client is available it will trigger a native crash. Use this only for testing purposes.

      Returns void