MbmsHelper
public
final
class
MbmsHelper
extends Object
java.lang.Object
|
↳ |
androidx.core.telephony.mbms.MbmsHelper
|
Helper methods for working with the android.telephony.mbms
cell-broadcast APIs.
Summary
Public methods |
static
CharSequence
|
getBestNameForService(Context context, ServiceInfo serviceInfo)
Finds the best name for an eMBMS streaming or file-download service, given a
Context that specifies the user's preferred languages.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
getBestNameForService
public static CharSequence getBestNameForService (Context context,
ServiceInfo serviceInfo)
Finds the best name for an eMBMS streaming or file-download service, given a
Context
that specifies the user's preferred languages. If no language supported by
the ServiceInfo
is preferred by the user, this method will return null
.
If called while running on an SDK version prior to Build.VERSION_CODES.P
, this method
will return null
.
Returns |
CharSequence |
The best name to display to the user for the service, or null if nothing
matches.
|