Interface LDInspectionFlagDetailsChangedHandler

Callback interface for collecting information about the SDK at runtime.

This interface is used to collect information about flag data. In order to understand the current flag state it should be combined with LDInspectionFlagValueChangedHandler. This interface will get the initial flag information, and LDInspectionFlagValueChangedHandler will provide changes to individual flags.

This interface should not be used by the application to access flags for the purpose of controlling application flow. It is intended for monitoring, analytics, or debugging purposes.

interface LDInspectionFlagDetailsChangedHandler {
    method: ((details: Record<string, LDEvaluationDetail>) => void);
    name: string;
    synchronous?: boolean;
    type: "flag-details-changed";
}

Properties

method: ((details: Record<string, LDEvaluationDetail>) => void)

This method is called when the flags in the store are replaced with new flags. It will contain all flags regardless of if they have been evaluated.

name: string

Name of the inspector. Will be used for logging issues with the inspector.

synchronous?: boolean

If true, then the inspector will be ran synchronously with flag updates.

type