-
- All Implemented Interfaces:
-
co.elastic.apm.android.sdk.internal.services.Lifecycle,co.elastic.apm.android.sdk.internal.services.Service
public class NetworkService extends ConnectivityManager.NetworkCallback implements Service
-
-
Method Summary
Modifier and Type Method Description static NetworkServicecreate(Context context)voidstart()voidstop()Stringname()synchronized NetworkTypegetType()CarrierInfogetCarrierInfo()voidonCapabilitiesChanged(@NonNull() Network network, @NonNull() NetworkCapabilities networkCapabilities)voidonLost(@NonNull() Network network)-
Methods inherited from class android.net.ConnectivityManager.NetworkCallback
onAvailable, onBlockedStatusChanged, onCapabilitiesChanged, onLinkPropertiesChanged, onLosing, onLost, onUnavailable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
create
static NetworkService create(Context context)
-
start
void start()
-
stop
void stop()
-
getType
@NotNull() synchronized NetworkType getType()
-
getCarrierInfo
@Nullable() CarrierInfo getCarrierInfo()
-
onCapabilitiesChanged
void onCapabilitiesChanged(@NonNull() Network network, @NonNull() NetworkCapabilities networkCapabilities)
-
-
-
-