optOut static method

  1. @Deprecated("Use instance.optOut instead")
void optOut(
  1. bool optOut
)

Sets the opt-out status for the current user.

optOut when true, stops the SDK from accepting any new event requests. When false, resumes normal SDK operation.

This method allows users to control their data collection preferences.

Implementation

@Deprecated("Use instance.optOut instead")
static void optOut(bool optOut) {
  instance.optOut(optOut);
}