Interface LDInspectionFlagDetailChangedHandler

Callback interface for collecting information about the SDK at runtime.

This interface is used to collect changes to flag data, but does not provide the initial data. It can be combined with LDInspectionFlagValuesChangedHandler to track the entire flag state.

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 LDInspectionFlagDetailChangedHandler {
    method: ((flagKey, detail) => void);
    name: string;
    synchronous?: boolean;
    type: "flag-detail-changed";
}

Properties

method: ((flagKey, detail) => void)

This method is called when a flag is updated. It will not be called when all flags are updated.

Type declaration

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: "flag-detail-changed"