MbmsHelper
class MbmsHelper
Helper methods for working with the android.telephony.mbms cell-broadcast APIs.
Summary
Public functions |
|
|---|---|
java-static CharSequence? |
getBestNameForService(context: Context, serviceInfo: ServiceInfo)Finds the best name for an eMBMS streaming or file-download service, given a |
Public functions
getBestNameForService
java-static fun getBestNameForService(context: Context, serviceInfo: ServiceInfo): CharSequence?
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 P, this method will return null.
| Parameters | |
|---|---|
context: Context |
An instance of |
serviceInfo: ServiceInfo |
An instance of |
| Returns | |
|---|---|
CharSequence? |
The best name to display to the user for the service, or |