Back to Rxswift

Hooks

docs/Enums/Hooks.html

6.10.21.1 KB
Original Source

Hooks

public enum Hooks

RxSwift global hooks

`

                recordCallStackOnError
                `

Undocumented

Declaration

Swift

public static var recordCallStackOnError: Bool

`

                DefaultErrorHandler
                `

Undocumented

Declaration

Swift

typealias DefaultErrorHandler = (_ subscriptionCallStack: [String], _ error: Error) -> Void

`

                CustomCaptureSubscriptionCallstack
                `

Undocumented

Declaration

Swift

typealias CustomCaptureSubscriptionCallstack = () -> [String]

`

                defaultErrorHandler
                `

Error handler called in case onError handler wasn’t provided.

Declaration

Swift

static var defaultErrorHandler: DefaultErrorHandler { get set }

`

                customCaptureSubscriptionCallstack
                `

Subscription callstack block to fetch custom callstack information.

Declaration

Swift

static var customCaptureSubscriptionCallstack: CustomCaptureSubscriptionCallstack { get set }