Class MultiDataHandler

  • All Implemented Interfaces:

    
    public abstract class MultiDataHandler
    extends BaseHandler
                        

    Business logic handler with multi-type data change callbacks.

    Since:

    5.10.4

    • Constructor Detail

      • MultiDataHandler

        MultiDataHandler()
    • Method Detail

      • stop

         void stop()

        Stops the handler.

      • notifyDataChange

         final <T> void notifyDataChange(@NonNull() MultiDataHandler.DataKey<T> dataKey, @NonNull() T data)

        Notifies data change for the specified type.

        Parameters:
        dataKey - the key containing the identifier and corresponding Class type
        data - the data
      • notifyDataError

         final <T> void notifyDataError(@NonNull() MultiDataHandler.DataKey<T> dataKey, @NonNull() NCError error)

        Notifies a data error for the specified type.

        Parameters:
        dataKey - the key containing the identifier and corresponding Class type
        error - the error
      • notifyDataError

         final <T> void notifyDataError(@NonNull() MultiDataHandler.DataKey<T> dataKey, @NonNull() NCError error, @NonNull() List<String> errorKeys)

        Notifies a data error for the specified type with error key list.

        Parameters:
        dataKey - the key containing the identifier and corresponding Class type
        error - the error
        errorKeys - the list of error keys