MissingForegroundServiceTypeException
  public
  
  final
  
  class
  MissingForegroundServiceTypeException
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
    extends ForegroundServiceTypeException
  
  
  
  
  
      implements
      
        Parcelable
      
  
  
| java.lang.Object | |||||||
| ↳ | java.lang.Throwable | ||||||
| ↳ | java.lang.Exception | ||||||
| ↳ | java.lang.RuntimeException | ||||||
| ↳ | java.lang.IllegalStateException | ||||||
| ↳ | android.app.ServiceStartNotAllowedException | ||||||
| ↳ | android.app.ForegroundServiceTypeException | ||||||
| ↳ | android.app.MissingForegroundServiceTypeException | ||||||
Exception thrown when an app tries to start a foreground Service without a type.
Summary
| Inherited constants | 
|---|
| Fields | |
|---|---|
| 
    public
    static
    final
    Creator<MissingForegroundServiceTypeException> | CREATOR
 | 
| Public constructors | |
|---|---|
| 
      MissingForegroundServiceTypeException(String message)
      Constructor. | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        int | 
      describeContents()
      Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. | 
| 
        
        
        
        
        
        void | 
      writeToParcel(Parcel dest, int flags)
      Flatten this object in to a Parcel. | 
| Inherited methods | |
|---|---|
Fields
CREATOR
public static final Creator<MissingForegroundServiceTypeException> CREATOR
Public constructors
MissingForegroundServiceTypeException
public MissingForegroundServiceTypeException (String message)
Constructor.
| Parameters | |
|---|---|
| message | String: This value cannot benull. | 
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
 instance's marshaled representation. For example, if the object will
 include a file descriptor in the output of writeToParcel(android.os.Parcel, int),
 the return value of this method must include the
 CONTENTS_FILE_DESCRIPTOR bit.
| Returns | |
|---|---|
| int | a bitmask indicating the set of special object types marshaled
 by this Parcelable object instance.
 Value is either 0orCONTENTS_FILE_DESCRIPTOR | 
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: This value cannot benull. | 
| flags | int: Additional flags about how the object should be written.
 May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE.
 Value is either0or a combination ofParcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
