Package org.linphone.core
Interface SignalInformation
public interface SignalInformation
Object to get signal (wifi/4G etc...) informations.
-
Method Summary
Modifier and TypeMethodDescriptionclone()Clone the given signalInformation.longGets the native pointer used by this class to make native method calls.Get theSignalTypeof theSignalInformation.Get theSignalStrengthUnitvalue of theSignalInformation.floatGet the value of theSignalInformation.Gets the object stored in this object user's datavoidsetSignalType(SignalType type) Set a newSignalTypeto aSignalInformation.voidSet a newSignalStrengthUnitto aSignalInformation.voidsetUserData(Object data) Sets the object to store in this object user's datavoidsetValue(float value) Set a new value to aSignalInformation.toString()
-
Method Details
-
getSignalType
SignalType getSignalType()- Returns:
- A
SignalType.
-
setSignalType
- Parameters:
type- The newSignalTypeto set.
-
getSignalUnit
SignalStrengthUnit getSignalUnit()- Returns:
- A
SignalStrengthUnit.
-
setSignalUnit
- Parameters:
unit- The newSignalStrengthUnitto set.
-
getStrength
float getStrength()- Returns:
- A float containing the value.
-
setValue
void setValue(float value) - Parameters:
value- a float containing the new value to set.
-
clone
Clone the given signalInformation.
- Returns:
- A new signalInformation with exactly same informations that param.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-