Package org.robolectric.shadows
Class ShadowWifiAwareManager
java.lang.Object
org.robolectric.shadows.ShadowWifiAwareManager
@Implements(value=android.net.wifi.aware.WifiAwareManager.class,
            minSdk=26)
public class ShadowWifiAwareManager
extends Object
Shadow Implementation of 
WifiAwareManager- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidattach(AttachCallback callback, Handler handler) protected booleanprotected booleanstatic PublishDiscoverySessionnewPublishDiscoverySession(WifiAwareManager manager, int clientId, int sessionId) Returns a new instance of PublishDiscoverySession.static SubscribeDiscoverySessionnewSubscribeDiscoverySession(WifiAwareManager manager, int clientId, int sessionId) Returns a new instance of SubscribeDiscoverySession.static WifiAwareSessionnewWifiAwareSession(WifiAwareManager manager, Binder binder, int clientId) Returns a new instance of WifiAwareSession.protected voidpublish(int clientId, Looper looper, PublishConfig publishConfig, DiscoverySessionCallback callback) static voidreset()voidsetAvailable(boolean available) Sets the availability of the wifiAwareManager.voidsetDiscoverySessionToPublish(PublishDiscoverySession publishDiscoverySession) Sets parameter to pass to DiscoverySessionCallback#onPublishStarted(PublishDiscoverySession)voidsetDiscoverySessionToSubscribe(SubscribeDiscoverySession subscribeDiscoverySession) Sets param to pass to DiscoverySessionCallback#onSubscribeStarted(SubscribeDiscoverySession)voidsetSessionDetached(boolean sessionDetached) Sets the boolean value indicating if a wifiAwareSession has been detached.voidsetWifiAwareSession(WifiAwareSession session) Sets parameter to pass to AttachCallback#onAttach(WifiAwareSession session)protected voidsubscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, DiscoverySessionCallback callback) 
- 
Constructor Details- 
ShadowWifiAwareManagerpublic ShadowWifiAwareManager()
 
- 
- 
Method Details- 
isAvailable
- 
attach
- 
publish@Implementation protected void publish(int clientId, Looper looper, PublishConfig publishConfig, DiscoverySessionCallback callback) 
- 
subscribe@Implementation protected void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, DiscoverySessionCallback callback) 
- 
isDeviceAttached
- 
newPublishDiscoverySessionpublic static PublishDiscoverySession newPublishDiscoverySession(WifiAwareManager manager, int clientId, int sessionId) Returns a new instance of PublishDiscoverySession.
- 
newSubscribeDiscoverySessionpublic static SubscribeDiscoverySession newSubscribeDiscoverySession(WifiAwareManager manager, int clientId, int sessionId) Returns a new instance of SubscribeDiscoverySession.
- 
newWifiAwareSessionpublic static WifiAwareSession newWifiAwareSession(WifiAwareManager manager, Binder binder, int clientId) Returns a new instance of WifiAwareSession.
- 
setAvailablepublic void setAvailable(boolean available) Sets the availability of the wifiAwareManager.
- 
setWifiAwareSessionSets parameter to pass to AttachCallback#onAttach(WifiAwareSession session)
- 
setSessionDetachedpublic void setSessionDetached(boolean sessionDetached) Sets the boolean value indicating if a wifiAwareSession has been detached.
- 
setDiscoverySessionToPublishSets parameter to pass to DiscoverySessionCallback#onPublishStarted(PublishDiscoverySession)
- 
setDiscoverySessionToSubscribeSets param to pass to DiscoverySessionCallback#onSubscribeStarted(SubscribeDiscoverySession)
- 
reset
 
-