public class OffHostService extends Object
Modifier and Type | Method and Description |
---|---|
void |
commit()
Make visible/permanent all pending changes:
Which are initiated by methods NfcController.defineOffHostService(java.lang.String, java.lang.String) and NfcController.deleteOffHostService(com.gsma.services.nfc.OffHostService)
On OffHostService and AidGroup objects |
AidGroup |
defineAidGroup(String description,
String category)
Create a new empty group of AIDs for the "Off-Host" service.
|
void |
deleteAidGroup(AidGroup group)
Delete an existing AID group from the "Off-Host" service.
|
AidGroup[] |
getAidGroups()
Return a list of the AID groups linked to the "Off-Host" service.
|
Drawable |
getBanner()
Return the banner linked to the "Off-Host" service.
|
String |
getDescription()
Return the description of the "Off-Host" service.
|
String |
getLocation()
Return the Secure Element name which holds the "Off-Host" service.
|
void |
setBanner(Drawable banner)
Set a banner for the "Off-Host" service.
|
void |
setBanner(int resourceID)
Set a banner for the "Off-Host" service.
|
public String getLocation()
public String getDescription()
public void setBanner(int resourceID) throws Resources.NotFoundException
resourceID
- The desired resource identifier.Resources.NotFoundException
- Indicate that the given resourceID does not exist.public void setBanner(Drawable banner)
banner
- A Drawable
object representing the banner.Drawable
object has to be created from a application resource providedIllegalArgumentException
- Method is invoked with null
or an illegal argument.public Drawable getBanner()
Drawable
object representing the banner or null
if no banner has been setpublic AidGroup defineAidGroup(String description, String category)
description
- Description of the group of AIDscategory
- Category the "Off-Host" service belongs to:AidGroup
classIllegalArgumentException
- Method is invoked with null
or an illegal argument.public void deleteAidGroup(AidGroup group)
group
- Instance of an AidGroup
class to be deletedIllegalArgumentException
- Method is invoked with null
or an illegal argument.public AidGroup[] getAidGroups()
AidGroup
instances or null
if no such instance exists.public void commit() throws InsufficientResourcesException
NfcController.defineOffHostService(java.lang.String, java.lang.String)
and NfcController.deleteOffHostService(com.gsma.services.nfc.OffHostService)
OffHostService
and AidGroup
objectsInsufficientResourcesException
- Indicate that insufficient resources are available in the routing table. Any pending updates will be discarded.