mirror of
https://github.com/hackku21/nearby_connections.git
synced 2026-03-02 03:49:22 +00:00
added file example, updated readme
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user