android/sdk/src/main/java/io/o2mc/sdk/business/event/EventManager.java
public void newEventWithProperties(String eventName, Object value) {
    if (isStopped) return;

    if (!Util.isValidEventName(eventName)) {
      notifier.notifyException(
          new O2MCTrackException(String.format("Event name '%s' is invalid.", eventName)),
          false); // is not fatal for base SDK functionality, next event name may be valid again
      return;
    }

    if (!Util.isValidEventValue(value)) {
      notifier.notifyException(
          new O2MCTrackException(String.format("Value '%s' is invalid.", value)),
          false); // is not fatal for base SDK functionality, next event value may be valid again
    }

    Event e = eventBus.generateEventWithProperties(eventName, value);
    eventBus.add(e);
  }
/**
   * Generates a new event with additional properties and adds it to the EventBus.
   *
   * @param eventName name of event to generate
   * @param value value to include in the event
   */
Generates a new event with additional properties and adds it to the EventBus.
@param eventName name of event to generate
@param value value to include in the event
Generates a new event with additional properties and adds it to the EventBus . @param eventName name of event to generate @param value value to include in the event
public void newEventWithProperties(String eventName, Object value) {
    if (isStopped) return;
    if (!Util.isValidEventName(eventName)) {
      notifier.notifyException(
          new O2MCTrackException(String.format("Event name '%s' is invalid.", eventName)),
          false); 
      return;
    }
    if (!Util.isValidEventValue(value)) {
      notifier.notifyException(
          new O2MCTrackException(String.format("Value '%s' is invalid.", value)),
          false); 
    }
    Event e = eventBus.generateEventWithProperties(eventName, value);
    eventBus.add(e);
  }
public void newEventWithProperties ( String eventName , Object value ) { if ( isStopped ) return ; if ( ! Util . isValidEventName ( eventName ) ) { notifier . notifyException ( new O2MCTrackException ( String . format ( "Event name '%s' is invalid." , eventName ) ) , false ) ; return ; } if ( ! Util . isValidEventValue ( value ) ) { notifier . notifyException ( new O2MCTrackException ( String . format ( "Value '%s' is invalid." , value ) ) , false ) ; } Event e = eventBus . generateEventWithProperties ( eventName , value ) ; eventBus . add ( e ) ; }
Generates a new event with additional properties and adds it to the EventBus.
Generates a new event with additional properties and adds it to the EventBus .
// is not fatal for base SDK functionality, next event name may be valid again // is not fatal for base SDK functionality, next event value may be valid again