YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.server.ServerAutostart Class Reference

The boot receiver. More...

Inheritance diagram for de.yaacc.upnp.server.ServerAutostart:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.server.ServerAutostart:
Collaboration graph

Public Member Functions

void onReceive (Context context, Intent intent)
 

Static Public Member Functions

static void applySetting (Context context, boolean autostartTicked)
 Enables or disables this receiver to match the setting.
 

Detailed Description

The boot receiver.

It is switched by the setting "autostart on boot": the component is enabled when the setting is ticked and disabled otherwise (applySetting), so no boot start happens unless the user ticked it. The process creation for the broadcast already runs the normal startup route (Yaacc.onCreate); the call of the service here is the fallback when that route's background start was refused.

Author
Christoph Hähnel (eyeless)

Member Function Documentation

◆ applySetting()

static void de.yaacc.upnp.server.ServerAutostart.applySetting ( Context context,
boolean autostartTicked )
static

Enables or disables this receiver to match the setting.

Called when the application starts (so an installation that existed before has the right state) and when the setting changes. The app keeps running (DONT_KILL_APP).

Here is the call graph for this function:

The documentation for this class was generated from the following file: