unAuthenticateVisitor method

  1. @override
dynamic unAuthenticateVisitor()
override

Implementation

@override
unAuthenticateVisitor() {
  if (visitor.config.decisionMode == Mode.DECISION_API) {
    if (visitor.anonymousId != null) {
      visitor.visitorId = visitor.anonymousId as String;
      visitor.anonymousId = null;
    }
  } else {
    Flagship.logger(Level.ALL,
        "unAuthenticateVisitor method will be ignored in Bucketing configuration");
  }
}