Skip to content
Snippets Groups Projects
Commit 3f215a1d authored by Les Lee's avatar Les Lee Committed by Android (Google) Code Review
Browse files

Merge "Add documentation about permissions required for hide API."

parents 917173f5 4357f400
No related branches found
No related tags found
No related merge requests found
......@@ -1281,7 +1281,16 @@ public class WifiP2pManager {
c.mAsyncChannel.sendMessage(REMOVE_GROUP, 0, c.putListener(listener));
}
/** @hide */
/**
* Force p2p to enter or exit listen state
*
* @param c is the channel created at {@link #initialize(Context, Looper, ChannelListener)}
* @param enable enables or disables listening
* @param listener for callbacks on success or failure. Can be null.
*
* @hide
*/
@RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS)
public void listen(Channel c, boolean enable, ActionListener listener) {
checkChannel(c);
c.mAsyncChannel.sendMessage(enable ? START_LISTEN : STOP_LISTEN,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment