Back to project page sodf.
The source code is released under:
Copyright (c) 2013 Lorenz Lehmann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...
If you think the Android project sodf listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package lal.sodf.framework; // w w w .j a v a 2s.c o m /** * An interface, which has to be implemented by every class that makes read or write requests. * The functions here will be used to receive the result of the read or write request. * @author Lorenz Lehmann * */ public interface SodfCallback { /** Code for successful write operation */ public static final int WRITE_SUCCESSFUL = 1; /** Code if an IO exception (e.g. user moved device away) occured during write */ public static final int WRITE_IO_EXCEPTION = 2; /** Code if a format exceptionoccured during write */ public static final int WRITE_FORMAT_EXCEPTION = 3; /** * Returns the data, which was read from the tag * @param data The data, which was read from the tag */ public void readComplete(SodfWrapper data); /** * Returns once the data has been written on the tag * @param The result code, which is either {@link SodfCallback.WRITE_SUCCESSFUL}, {@link SodfCallback.WRITE_IO_EXCEPTION}, or {@link SodfCallback.WRITE_FORMAT_EXCEPTION} */ public void writeComplete(int resultCode); }