mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
style: callback interface methods have become default methods
This commit is contained in:
parent
efc1baa802
commit
cb3f1290d1
8 changed files with 35 additions and 38 deletions
|
|
@ -1,8 +1,9 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
@Keep
|
||||
public interface ScanCallback {
|
||||
|
||||
void onError(Exception exception);
|
||||
|
||||
void onSuccess(boolean isScanning, long count);
|
||||
default void onError(Exception exception) {}
|
||||
default void onSuccess(boolean isScanning, long count) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue