Lines Matching refs:network

5 …-Fi hotspot, Bluetooth, and USB sharing. It also allows you to query the network sharing state and…
8 … mode. For details about the APIs, see [API Reference](../reference/apis-network-kit/js-apis-net-s…
12 - Wi-Fi sharing: Shares the network through a Wi-Fi hotspot.
13 - Bluetooth sharing: Shares the network through Bluetooth.
14 - USB tethering: Shares the network using a USB flash drive.
23 Typical network sharing scenarios are as follows:
26 - Disabling network sharing
27 - Obtaining the data traffic of the shared network
33 For the complete list of APIs and example code, see [Network Sharing](../reference/apis-network-kit…
37 … AsyncCallback\<boolean>): void; | Checks whether the system supports network sharing. This API…
38 | isSharing(callback: AsyncCallback\<boolean>): void; | Checks whether network sharing …
39 | startSharing(type: SharingIfaceType, callback: AsyncCallback\<void>): void; | Starts network sha…
40 | stopSharing(type: SharingIfaceType, callback: AsyncCallback\<void>): void; | Stops network shari…
41 …back\<number>): void; | Obtains the received data traffic during network sharing, in KB. T…
42 …Callback\<number>): void; | Obtains the sent data traffic during network sharing, in KB. T…
43 …ncCallback\<number>): void; | Obtains the total data traffic during network sharing, in KB. T…
44 …<Array\<string>>): void; | Obtains the names of network interface cards (NICs) in the specified n…
45 …Type, callback: AsyncCallback\<SharingIfaceState>): void; | Obtains the network sharing state of …
47 …tateChange', callback: Callback\<boolean>): void; | Subscribes to network sharing state cha…
48 …eChange', callback?: Callback\<boolean>): void; | Unsubscribes from network sharing state cha…
49 …e, iface: string, state: SharingIfaceState }>): void; | Subscribes to network sharing state cha…
50 …, iface: string, state: SharingIfaceState }>): void; | Unsubscribes from network sharing state cha…
57 2. Subscribe to network sharing state changes.
58 3. Call **startSharing** to start network sharing of the specified type.
59 4. Return the callback for successfully starting network sharing.
66 // Subscribe to network sharing state changes.
71 // Call startSharing to start network sharing of the specified type.
79 ## Disabling network sharing
84 2. Subscribe to network sharing state changes.
85 3. Call **stopSharing** to stop network sharing of the specified type.
86 4. Return the callback for successfully stopping network sharing.
93 // Subscribe to network sharing state changes.
98 // Call stopSharing to stop network sharing of the specified type.
106 ## Obtaining the data traffic of the shared network
111 2. Call **startSharing** to start network sharing of the specified type.
113 4. Call **stopSharing** to stop network sharing of the specified type and clear the data volume of
120 // Call startSharing to start network sharing of the specified type.
134 // Call stopSharing to stop network sharing of the specified type and clear the data volume of netw…
141 // Call getStatsTotalBytes again. The data volume of network sharing has been cleared.