TvAdManager.TvAdServiceCallback
  public
  static
  
  abstract
  class
  TvAdManager.TvAdServiceCallback
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.media.tv.ad.TvAdManager.TvAdServiceCallback | 
Callback used to monitor status of the TV advertisement service.
Summary
Public constructors | |
|---|---|
      
      TvAdServiceCallback()
      
      
     | 
  |
Public methods | |
|---|---|
        
        
        
        
        
        void
     | 
  
    
      
      onAdServiceAdded(String serviceId)
      
      
        This is called when a TV AD service is added to the system.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      onAdServiceRemoved(String serviceId)
      
      
        This is called when a TV AD service is removed from the system.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      onAdServiceUpdated(String serviceId)
      
      
        This is called when a TV AD service is updated on the system.  | 
  
Inherited methods | |
|---|---|
Public constructors
TvAdServiceCallback
public TvAdServiceCallback ()
Public methods
onAdServiceAdded
public void onAdServiceAdded (String serviceId)
This is called when a TV AD service is added to the system.
Normally it happens when the user installs a new TV AD service package that implements
 TvAdService interface.
| Parameters | |
|---|---|
serviceId | 
        
          String: The ID of the TV AD service.
 This value cannot be null. | 
      
onAdServiceRemoved
public void onAdServiceRemoved (String serviceId)
This is called when a TV AD service is removed from the system.
Normally it happens when the user uninstalls the previously installed TV AD service package.
| Parameters | |
|---|---|
serviceId | 
        
          String: The ID of the TV AD service.
 This value cannot be null. | 
      
onAdServiceUpdated
public void onAdServiceUpdated (String serviceId)
This is called when a TV AD service is updated on the system.
Normally it happens when a previously installed TV AD service package is re-installed or a newer version of the package exists becomes available/unavailable.
| Parameters | |
|---|---|
serviceId | 
        
          String: The ID of the TV AD service.
 This value cannot be null. |