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.long
Gets the native pointer used by this class to make native method calls.Get theSignalType
of theSignalInformation
.Get theSignalStrengthUnit
value of theSignalInformation
.float
Get the value of theSignalInformation
.Gets the object stored in this object user's datavoid
setSignalType
(SignalType type) Set a newSignalType
to aSignalInformation
.void
Set a newSignalStrengthUnit
to aSignalInformation
.void
setUserData
(Object data) Sets the object to store in this object user's datavoid
setValue
(float value) Set a new value to aSignalInformation
.toString()
-
Method Details
-
getSignalType
SignalType getSignalType()- Returns:
- A
SignalType
.
-
setSignalType
- Parameters:
type
- The newSignalType
to set.
-
getSignalUnit
SignalStrengthUnit getSignalUnit()- Returns:
- A
SignalStrengthUnit
.
-
setSignalUnit
- Parameters:
unit
- The newSignalStrengthUnit
to 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()
-