Package 

Class InternalSentrySdk


  • @ApiStatus.Internal() 
    public final class InternalSentrySdk
    
                        

    Sentry SDK internal API methods meant for being used by the Sentry Hybrid SDKs.

    • Method Detail

      • serializeScope

        @NotNull() static Map<String, Object> serializeScope(@NotNull() Context context, @NotNull() SentryAndroidOptions options, @Nullable() IScope scope)

        Serializes the provided scope. Specific data may be back-filled (e.g. device context) if thescope itself does not provide it.

        Parameters:
        context - Android context
        options - Sentry Options
        scope - the scope
      • captureEnvelope

        @Nullable() static SentryId captureEnvelope(@NotNull() Array<byte> envelopeData, boolean maybeStartNewSession)

        Captures the provided envelope. Compared to captureEvent thismethod - will not enrich events with additional data (e.g. scope)- will not execute beforeSend: it's up to the caller to take care of this- will not perform any sampling: it's up to the caller to take care of this- will enrich the envelope with a Session update if applicable

        Parameters:
        envelopeData - the serialized envelope data