Class ShadowService

    • Constructor Detail

      • ShadowService

        public ShadowService()
    • Method Detail

      • onDestroy

        @Implementation
        protected void onDestroy()
      • stopSelf

        @Implementation
        protected void stopSelf()
      • stopSelf

        @Implementation
        protected void stopSelf​(int id)
      • stopSelfResult

        @Implementation
        protected boolean stopSelfResult​(int id)
      • startForeground

        @Implementation
        protected final void startForeground​(int id,
                                             Notification notification)
      • startForeground

        @Implementation(minSdk=29)
        protected final void startForeground​(int id,
                                             Notification notification,
                                             int foregroundServiceType)
      • stopForeground

        protected void stopForeground​(boolean removeNotification)
      • getForegroundServiceType

        @Implementation(minSdk=29)
        protected final int getForegroundServiceType()
      • stopForeground

        @Implementation(minSdk=24)
        protected void stopForeground​(int flags)
      • getLastForegroundNotificationId

        public int getLastForegroundNotificationId()
      • getLastForegroundNotification

        public Notification getLastForegroundNotification()
      • isLastForegroundNotificationAttached

        public boolean isLastForegroundNotificationAttached()
        Returns whether the last foreground notification is still "attached" to the service, meaning it will be removed when the service is destroyed.
      • isStoppedBySelf

        public boolean isStoppedBySelf()
        Returns:
        Is this service stopped by self.
      • isForegroundStopped

        public boolean isForegroundStopped()
      • getNotificationShouldRemoved

        public boolean getNotificationShouldRemoved()