Class KiiObjectCallBack

    • Constructor Detail

      • KiiObjectCallBack

        public KiiObjectCallBack()
    • Method Detail

      • onTaskCancel

        public void onTaskCancel​(int token)
        Runs on the UI thread after the task has been canceled.
      • onTaskStart

        public void onTaskStart​(int token)
        Runs on the UI thread before the task is executed.
      • onSaveCompleted

        public void onSaveCompleted​(int token,
                                    @NonNull
                                    KiiObject object,
                                    @Nullable
                                    java.lang.Exception exception)
        Runs on the UI thread after the KiiObject.save(KiiObjectCallBack) has been executed.
      • onRefreshCompleted

        public void onRefreshCompleted​(int token,
                                       @NonNull
                                       KiiObject object,
                                       @Nullable
                                       java.lang.Exception exception)
        Runs on the UI thread after the KiiObject.refresh(KiiObjectCallBack) has been executed.
      • onDeleteCompleted

        public void onDeleteCompleted​(int token,
                                      @Nullable
                                      java.lang.Exception exception)
        Runs on the UI thread after the KiiObject.delete(KiiObjectCallBack) has been executed.
      • onTransferStart

        public void onTransferStart​(@NonNull
                                    KiiObject object)
        Executed on the UI thread when transfer is started.
        Specified by:
        onTransferStart in interface KiiObjectBodyCallback
        Parameters:
        object - KiiObject instance which has invoked transfer operation.
      • onTransferCompleted

        public void onTransferCompleted​(@NonNull
                                        KiiObject object,
                                        @Nullable
                                        java.lang.Exception exception)
        Executed on the UI thread when the transfer has completed.
        Specified by:
        onTransferCompleted in interface KiiObjectBodyCallback
        Parameters:
        object - KiiObject instance which has invoked transfer operation.
        exception - null if completed otherwise failed.
      • onTransferProgress

        public void onTransferProgress​(@NonNull
                                       KiiObject object,
                                       long completedInBytes,
                                       long totalSizeinBytes)
        Executed on the UI thread when transfer progress has updated.
        Specified by:
        onTransferProgress in interface KiiObjectBodyCallback
        Parameters:
        operator - KiiObject instance which has invoked transfer operation.
        completedInBytes - Completed size of transfer in bytes.
        totalSizeinBytes - Total size of transfer in bytes.