added file example, updated readme

This commit is contained in:
Prerak Mann
2019-08-16 01:00:35 +05:30
parent dcd86e885f
commit cd7e9bc63d
4 changed files with 168 additions and 117 deletions

View File

@@ -1,6 +1,6 @@
/// https://pub.dev/packages/nearby_connections#-readme-tab-
/// https://pub.dev/packages/nearby_connections#-readme-tab-
library nearby_connections;
export 'src/classes.dart';
export 'src/defs.dart';
export 'src/nearby_connections.dart';
export 'src/nearby_connections.dart';

View File

@@ -3,17 +3,17 @@ import 'dart:typed_data';
import 'package:nearby_connections/src/defs.dart';
/// Bytes may be null if [Payload.type] is not [PayloadType.BYTES]
/// File may be null if [Payload.type] is not [PayloadType.FILE]
///
/// Bytes may be null if [Payload.type] is not [PayloadType.BYTES]
/// File may be null if [Payload.type] is not [PayloadType.FILE]
///
/// Filepath is the complete filepath(with name) of the file
///
///
/// The file at this location is incomplete until payloadTransferUpdate
/// gives SUCCESS for this payloadId
class Payload {
int id;
PayloadType type;
Uint8List bytes;
String filePath;
@@ -51,4 +51,4 @@ class ConnectionInfo {
ConnectionInfo(
this.endpointName, this.authenticationToken, this.isIncomingConnection);
}
}