Lines Matching refs:network
1 # @system.network (Network State)
12 import network from '@system.network';
23 ## network.getType<sup>3+</sup>
31 Obtains the network type of this device.
54 network.getType({
56 console.log('success get network type:' + data.type);
64 ## network.subscribe<sup>3+</sup>
71 Listens to the network connection state of this device. If this API is called multiple times, the l…
79 | success | Function | No| Called when the network state changes. The return value is defined by [N…
94 network.subscribe({
96 console.log('success get network type:' + data.type);
104 ## network.unsubscribe<sup>3+</sup>
108 Cancels listening to the network connection state of this device.
115 import network from '@system.network';
117 network.unsubscribe();