diff options
author | Joey <joey@lineageos.org> | 2018-03-12 13:55:27 +0100 |
---|---|---|
committer | Joey <joey@lineageos.org> | 2018-03-12 16:00:00 +0100 |
commit | b6d895cd9faec16a2f2020cc447a2aa1c698392e (patch) | |
tree | 9c80bdebcdd7abef35deeff38554593459e257c0 /reference/lineageos/app/Profile.ProfileTrigger.html | |
parent | 55ccdc3002a2adaee63231b59b6580cca7437869 (diff) | |
download | lineage-sdk-b6d895cd9faec16a2f2020cc447a2aa1c698392e.tar.gz lineage-sdk-b6d895cd9faec16a2f2020cc447a2aa1c698392e.tar.bz2 lineage-sdk-b6d895cd9faec16a2f2020cc447a2aa1c698392e.zip |
Initial javadoc pushgh-pages
Change-Id: Ic4f9f576d0676dc696631b49d7e65e72b0ccde85
Signed-off-by: Joey <joey@lineageos.org>
Diffstat (limited to 'reference/lineageos/app/Profile.ProfileTrigger.html')
-rw-r--r-- | reference/lineageos/app/Profile.ProfileTrigger.html | 1336 |
1 files changed, 1336 insertions, 0 deletions
diff --git a/reference/lineageos/app/Profile.ProfileTrigger.html b/reference/lineageos/app/Profile.ProfileTrigger.html new file mode 100644 index 00000000..2e48907a --- /dev/null +++ b/reference/lineageos/app/Profile.ProfileTrigger.html @@ -0,0 +1,1336 @@ +<!-- ################ DO NOT EDIT THIS FILE. ################# --> +<!-- ################ ################# --> +<!-- ################ IT IS GENERATED. ################# --> +<!-- ################ ################# --> +<!-- ################ INSTEAD EDIT THE JAVADOC COMMENTS. ################# --> + +<!DOCTYPE html> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<html> +<head> + + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="viewport" content="width=device-width" /> + +<link rel="shortcut icon" type="image/x-icon" href="../../../assets/favicon.ico" /> +<title>Profile.ProfileTrigger | Android Developers</title> + +<!-- STYLESHEETS --> +<link rel="stylesheet" +href="http://fonts.googleapis.com/css?family=Roboto+Condensed"> +<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" + title="roboto"> +<link href="../../../assets/css/default.css?v=5" rel="stylesheet" type="text/css"> + + +<!-- FULLSCREEN STYLESHEET --> +<link href="../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" +type="text/css"> + + +<!-- JAVASCRIPT --> +<script src="http://www.google.com/jsapi" type="text/javascript"></script> +<script src="../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> +<script type="text/javascript"> + var toRoot = "../../../"; + var metaTags = []; + var devsite = false; +</script> + + + +<script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-5831155-1', 'android.com'); + ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); + ga('send', 'pageview'); + ga('universal.send', 'pageview'); // Send page view for new tracker. +</script> + +<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> +<script src="../../../assets/docs.js?v=3" type="text/javascript"></script> +</head> + +<body class="gc-documentation + develop reference" itemscope itemtype="http://schema.org/Article"> + <div id="doc-api-level" class="2" style="display:none"></div> + <a name="top"></a> + + <div id="header"> + <div id="headerLeft"> + <a href="../../../reference/packages.html" tabindex="-1"><img + src="../../../assets/lineage_logo.svg" alt="CID" width="144" height="72"/> + <span id="masthead-title" style="font-size: 28px;">LineageOS Platform SDK</span></a> + </div> + </div><!-- header --> + + + <div class="wrap clearfix" id="body-content"> + <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> + <div id="devdoc-nav"> + <div id="api-nav-header"> + <div id="api-level-toggle"> + <label for="apiLevelCheckbox" class="disabled" + title="Select your target API level to dim unavailable APIs">API level: </label> + <div class="select-wrapper"> + <select id="apiLevelSelector"> + <!-- option elements added by buildApiLevelSelector() --> + </select> + </div> + </div><!-- end toggle --> + <div id="api-nav-title">LineageOS APIs</div> + </div><!-- end nav header --> + <script> + var SINCE_DATA = [ '1', '2', '3', '4', '5', '6', '7', '8', '9' ]; + buildApiLevelSelector(); + </script> + + <div id="swapper"> + <div id="nav-panels"> + <div id="resize-packages-nav"> + <div id="packages-nav" class="scroll-pane"> + + <ul> + + <li class="selected api apilevel-2"> + <a href="../../../reference/lineageos/app/package-summary.html">lineageos.app</a></li> + <li class="api apilevel-4"> + <a href="../../../reference/lineageos/content/package-summary.html">lineageos.content</a></li> + <li class="api apilevel-2"> + <a href="../../../reference/lineageos/hardware/package-summary.html">lineageos.hardware</a></li> + <li class="api apilevel-1"> + <a href="../../../reference/lineageos/os/package-summary.html">lineageos.os</a></li> + <li class="api apilevel-1"> + <a href="../../../reference/lineageos/platform/package-summary.html">lineageos.platform</a></li> + <li class="api apilevel-4"> + <a href="../../../reference/lineageos/power/package-summary.html">lineageos.power</a></li> + <li class="api apilevel-8"> + <a href="../../../reference/lineageos/preference/package-summary.html">lineageos.preference</a></li> + <li class="api apilevel-2"> + <a href="../../../reference/lineageos/profiles/package-summary.html">lineageos.profiles</a></li> + <li class="api apilevel-5"> + <a href="../../../reference/lineageos/providers/package-summary.html">lineageos.providers</a></li> + <li class="api apilevel-9"> + <a href="../../../reference/lineageos/style/package-summary.html">lineageos.style</a></li> + <li class="api apilevel-5"> + <a href="../../../reference/lineageos/util/package-summary.html">lineageos.util</a></li> + <li class="api apilevel-5"> + <a href="../../../reference/lineageos/weather/package-summary.html">lineageos.weather</a></li> + <li class="api apilevel-"> + <a href="../../../reference/lineageos/weather/util/package-summary.html">lineageos.weather.util</a></li> + <li class="api apilevel-5"> + <a href="../../../reference/lineageos/weatherservice/package-summary.html">lineageos.weatherservice</a></li> + </ul><br/> + + </div> <!-- end packages-nav --> + </div> <!-- end resize-packages --> + <div id="classes-nav" class="scroll-pane"> + + + + <ul> + + + + <li><h2>Classes</h2> + <ul> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.html">Profile</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.DozeMode.html">Profile.DozeMode</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.ExpandedDesktopMode.html">Profile.ExpandedDesktopMode</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.LockMode.html">Profile.LockMode</a></li> + <li class="api apilevel-5"><a href="../../../reference/lineageos/app/Profile.NotificationLightMode.html">Profile.NotificationLightMode</a></li> + <li class="selected api apilevel-2"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.TriggerState.html">Profile.TriggerState</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/Profile.Type.html">Profile.Type</a></li> + <li class="api apilevel-2"><a href="../../../reference/lineageos/app/ProfileManager.html">ProfileManager</a></li> + </ul> + </li> + + + + </ul><br/> + + + </div><!-- end classes --> + </div><!-- end nav-panels --> + <div id="nav-tree" style="display:none" class="scroll-pane"> + <div id="tree-list"></div> + </div><!-- end nav-tree --> + </div><!-- end swapper --> + <div id="nav-swap"> + <a class="fullscreen">fullscreen</a> + <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> + </div> + </div> <!-- end devdoc-nav --> + </div> <!-- end side-nav --> + <script type="text/javascript"> + // init fullscreen based on user pref + var fullscreen = readCookie("fullscreen"); + if (fullscreen != 0) { + if (fullscreen == "false") { + toggleFullscreen(false); + } else { + toggleFullscreen(true); + } + } + // init nav version for mobile + if (isMobile) { + swapNav(); // tree view should be used on mobile + $('#nav-swap').hide(); + } else { + chooseDefaultNav(); + if ($("#nav-tree").is(':visible')) { + init_default_navtree("../../../"); + } + } + // scroll the selected page into view + $(document).ready(function() { + scrollIntoView("packages-nav"); + scrollIntoView("classes-nav"); + }); + </script> + + + + + +<div class="col-12" id="doc-col"> + +<div id="api-info-block"> + + + + + + + + + + + + + + + + + + + + +<div class="sum-details-links"> + +Summary: + + + + + + + <a href="#inhconstants">Inherited Constants</a> + + + + + + | <a href="#pubctors">Ctors</a> + + + + + | <a href="#pubmethods">Methods</a> + + + + + | <a href="#inhmethods">Inherited Methods</a> + +| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> + +</div><!-- end sum-details-links --> +<div class="api-level"> + + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a> + + + +</div> +</div><!-- end api-info-block --> + + +<!-- ======== START OF CLASS DATA ======== --> + +<div id="jd-header"> + public + static + + + class +<h1 itemprop="name">Profile.ProfileTrigger</h1> + + + + + extends Object<br/> + + + + + + + implements + + Parcelable + + + + + + + + +</div><!-- end header --> + +<div id="naMessage"></div> + +<div id="jd-content" class="api apilevel-2"> +<table class="jd-inheritance-table"> + + + <tr> + + <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> + </tr> + + + <tr> + + <td class="jd-inheritance-space"> ↳</td> + + <td colspan="1" class="jd-inheritance-class-cell">lineageos.app.Profile.ProfileTrigger</td> + </tr> + + +</table> + + + + + + + +<div class="jd-descr"> + + +<h2>Class Overview</h2> +<p itemprop="articleBody">A <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> is a <code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code> which can be queried from the OS +</p> + + + + + +</div><!-- jd-descr --> + + + + + + + + + + + + + + + + +<div class="jd-descr"> + + +<h2>Summary</h2> + + + + + + + + + + + + + + + + +<!-- =========== ENUM CONSTANT SUMMARY =========== --> +<table id="inhconstants" class="jd-sumtable"><tr><th> + <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> + <div style="clear:left;">Inherited Constants</div></th></tr> + + + + +<tr class="api apilevel-" > +<td colspan="12"> + + <a href="#" id="inherited-constants-android.os.Parcelable" class="jd-expando-trigger closed" > + <img id="inherited-constants-android.os.Parcelable-trigger" class="jd-expando-trigger-img" + height="34" + src="../../../assets/images/styles/disclosure_down.png" /> + </a>From interface +android.os.Parcelable +<div id="inherited-constants-android.os.Parcelable"> + <div id="inherited-constants-android.os.Parcelable-list" + class="jd-inheritedlinks"> + </div> + <div id="inherited-constants-android.os.Parcelable-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol">int</td> + <td class="jd-linkcol">CONTENTS_FILE_DESCRIPTOR</td> + <td class="jd-descrcol" width="100%"> + + + + + </td> + </tr> + + + <tr class=" api apilevel-" > + <td class="jd-typecol">int</td> + <td class="jd-linkcol">PARCELABLE_ELIDE_DUPLICATES</td> + <td class="jd-descrcol" width="100%"> + + + + + </td> + </tr> + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol">int</td> + <td class="jd-linkcol">PARCELABLE_WRITE_RETURN_VALUE</td> + <td class="jd-descrcol" width="100%"> + + + + + </td> + </tr> + + +</table> + </div> +</div> +</td></tr> + + +</table> + + + + + + + + + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> + + + + + <tr class="alt-color api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + </nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#Profile.ProfileTrigger(int, java.lang.String, int, java.lang.String)">Profile.ProfileTrigger</a></span>(int type, String id, int state, String name)</nobr> + + <div class="jd-descrdiv"> + Construct a <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> based on its type <code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code> and if + the trigger should fire on a <code><a href="../../../reference/lineageos/app/Profile.TriggerState.html">Profile.TriggerState</a></code> change. + + + + </div> + + </td></tr> + + + +</table> + + + + + + +<!-- ========== METHOD SUMMARY =========== --> +<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> + + + + + <tr class="alt-color api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + int</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#describeContents()">describeContents</a></span>()</nobr> + + </td></tr> + + + + <tr class=" api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + String</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#getId()">getId</a></span>()</nobr> + + <div class="jd-descrdiv"> + Get the id associated with the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> + + + + </div> + + </td></tr> + + + + <tr class="alt-color api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + String</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#getName()">getName</a></span>()</nobr> + + <div class="jd-descrdiv"> + Get the name associated with the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> + + + + </div> + + </td></tr> + + + + <tr class=" api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + int</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#getState()">getState</a></span>()</nobr> + + <div class="jd-descrdiv"> + Get the state associated with the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> + + + + </div> + + </td></tr> + + + + <tr class="alt-color api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + int</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#getType()">getType</a></span>()</nobr> + + <div class="jd-descrdiv"> + Get the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> <code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code> + + + + </div> + + </td></tr> + + + + <tr class=" api apilevel-2" > + <td class="jd-typecol"><nobr> + + + + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad"><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html#writeToParcel(android.os.Parcel, int)">writeToParcel</a></span>(Parcel dest, int flags)</nobr> + + </td></tr> + + + +</table> + + + + + + + +<!-- ========== METHOD SUMMARY =========== --> +<table id="inhmethods" class="jd-sumtable"><tr><th> + <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> + <div style="clear:left;">Inherited Methods</div></th></tr> + + +<tr class="api apilevel-" > +<td colspan="12"> + <a href="#" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" > + <img id="inherited-methods-java.lang.Object-trigger" class="jd-expando-trigger-img" + height="34" + src="../../../assets/images/styles/disclosure_down.png" /> + </a> +From class + + java.lang.Object + +<div id="inherited-methods-java.lang.Object"> + <div id="inherited-methods-java.lang.Object-list" + class="jd-inheritedlinks"> + </div> + <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol"><nobr> + + + + + + Object</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">clone</span>()</nobr> + + </td></tr> + + + + <tr class=" api apilevel-" > + <td class="jd-typecol"><nobr> + + + + + + boolean</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">equals</span>(Object arg0)</nobr> + + </td></tr> + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol"><nobr> + + + + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">finalize</span>()</nobr> + + </td></tr> + + + + <tr class=" api apilevel-" > + <td class="jd-typecol"><nobr> + + + final + + + Class<?></nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">getClass</span>()</nobr> + + </td></tr> + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol"><nobr> + + + + + + int</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">hashCode</span>()</nobr> + + </td></tr> + + + + <tr class=" api apilevel-" > + <td class="jd-typecol"><nobr> + + + final + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">notify</span>()</nobr> + + </td></tr> + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol"><nobr> + + + final + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">notifyAll</span>()</nobr> + + </td></tr> + + + + <tr class=" api apilevel-" > + <td class="jd-typecol"><nobr> + + + + + + String</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">toString</span>()</nobr> + + </td></tr> + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol"><nobr> + + + final + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">wait</span>(long arg0, int arg1)</nobr> + + </td></tr> + + + + <tr class=" api apilevel-" > + <td class="jd-typecol"><nobr> + + + final + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">wait</span>(long arg0)</nobr> + + </td></tr> + + + + <tr class="alt-color api apilevel-" > + <td class="jd-typecol"><nobr> + + + final + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">wait</span>()</nobr> + + </td></tr> + + +</table> + </div> +</div> +</td></tr> + + + +<tr class="api apilevel-" > +<td colspan="12"> + <a href="#" id="inherited-methods-android.os.Parcelable" class="jd-expando-trigger closed" > + <img id="inherited-methods-android.os.Parcelable-trigger" class="jd-expando-trigger-img" + height="34" + src="../../../assets/images/styles/disclosure_down.png" /> + </a> +From interface + + android.os.Parcelable + +<div id="inherited-methods-android.os.Parcelable"> + <div id="inherited-methods-android.os.Parcelable-list" + class="jd-inheritedlinks"> + </div> + <div id="inherited-methods-android.os.Parcelable-summary" style="display: none;"> + <table class="jd-sumtable-expando"> + + + + + <tr class="alt-color api apilevel-2" > + <td class="jd-typecol"><nobr> + abstract + + + + + int</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">describeContents</span>()</nobr> + + </td></tr> + + + + <tr class=" api apilevel-2" > + <td class="jd-typecol"><nobr> + abstract + + + + + void</nobr> + </td> + <td class="jd-linkcol" width="100%"><nobr> + <span class="sympad">writeToParcel</span>(Parcel arg0, int arg1)</nobr> + + </td></tr> + + +</table> + </div> +</div> +</td></tr> + + +</table> + + +</div><!-- jd-descr (summary) --> + +<!-- Details --> + + + + + + + + +<!-- XML Attributes --> + + +<!-- Enum Values --> + + +<!-- Constants --> + + +<!-- Fields --> + + +<!-- Public ctors --> + + +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<h2>Public Constructors</h2> + + + +<A NAME="Profile.ProfileTrigger(int, java.lang.String, int, java.lang.String)"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + + </span> + <span class="sympad">Profile.ProfileTrigger</span> + <span class="normal">(int type, String id, int state, String name)</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p>Construct a <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> based on its type <code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code> and if + the trigger should fire on a <code><a href="../../../reference/lineageos/app/Profile.TriggerState.html">Profile.TriggerState</a></code> change. + + Example: + <pre class="prettyprint"> + triggerId = trigger.getSSID(); // Use the AP's SSID as identifier + triggerName = trigger.getTitle(); // Use the AP's name as the trigger name + triggerType = Profile.TriggerType.WIFI; // This is a wifi trigger + triggerState = Profile.TriggerState.ON_CONNECT; // On Connect of this, trigger + + Profile.ProfileTrigger profileTrigger = + new Profile.ProfileTrigger(triggerType, triggerId, triggerState, triggerName); + </pre></p> + <table class="responsive"> + <tr><th colspan=2>Parameters</th></tr> + <tr> + <td><code>type</code></td> + <td width="100%"> + <code>int</code>: a <code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code></td> + </tr> + <tr> + <td><code>id</code></td> + <td width="100%"> + <code>String</code>: an identifier for the ProfileTrigger</td> + </tr> + <tr> + <td><code>state</code></td> + <td width="100%"> + <code>int</code>: <code><a href="../../../reference/lineageos/app/Profile.TriggerState.html">Profile.TriggerState</a></code> depending on the TriggerType</td> + </tr> + <tr> + <td><code>name</code></td> + <td width="100%"> + <code>String</code>: an identifying name for the ProfileTrigger +</td> + </tr> + </table> + + </div> +</div> + + + + + +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<!-- Protected ctors --> + + + +<!-- ========= METHOD DETAIL ======== --> +<!-- Public methdos --> + +<h2>Public Methods</h2> + + + +<A NAME="describeContents()"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + int + </span> + <span class="sympad">describeContents</span> + <span class="normal">()</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p></p> + <table class="responsive"> + <tr><th colspan=2>Returns</th></tr> + <tr> + <td><code>int</code></td> + <td width="100%"><!-- no returns description in source --></td> + </tr> + </table> + + </div> +</div> + + +<A NAME="getId()"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + String + </span> + <span class="sympad">getId</span> + <span class="normal">()</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p>Get the id associated with the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code></p> + <table class="responsive"> + <tr><th colspan=2>Returns</th></tr> + <tr> + <td><code>String</code></td> + <td width="100%">an string identifier +</td> + </tr> + </table> + + </div> +</div> + + +<A NAME="getName()"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + String + </span> + <span class="sympad">getName</span> + <span class="normal">()</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p>Get the name associated with the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code></p> + <table class="responsive"> + <tr><th colspan=2>Returns</th></tr> + <tr> + <td><code>String</code></td> + <td width="100%">a string name +</td> + </tr> + </table> + + </div> +</div> + + +<A NAME="getState()"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + int + </span> + <span class="sympad">getState</span> + <span class="normal">()</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p>Get the state associated with the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code></p> + <table class="responsive"> + <tr><th colspan=2>Returns</th></tr> + <tr> + <td><code>int</code></td> + <td width="100%">an integer indicating the state +</td> + </tr> + </table> + + </div> +</div> + + +<A NAME="getType()"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + int + </span> + <span class="sympad">getType</span> + <span class="normal">()</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p>Get the <code><a href="../../../reference/lineageos/app/Profile.ProfileTrigger.html">Profile.ProfileTrigger</a></code> <code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code></p> + <table class="responsive"> + <tr><th colspan=2>Returns</th></tr> + <tr> + <td><code>int</code></td> + <td width="100%"><code><a href="../../../reference/lineageos/app/Profile.TriggerType.html">Profile.TriggerType</a></code> +</td> + </tr> + </table> + + </div> +</div> + + +<A NAME="writeToParcel(android.os.Parcel, int)"></A> + +<div class="jd-details api apilevel-2"> + <h4 class="jd-details-title"> + <span class="normal"> + public + + + + + void + </span> + <span class="sympad">writeToParcel</span> + <span class="normal">(Parcel dest, int flags)</span> + </h4> + <div class="api-level"> + <div> + added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 2</a></div> + + + + </div> + <div class="jd-details-descr"> + + + + + <p></p> + <table class="responsive"> + <tr><th colspan=2>Parameters</th></tr> + <tr> + <td><code>dest</code></td> + <td width="100%"> + <code>Parcel</code> <!-- no parameter comment --></td> + </tr> + <tr> + <td><code>flags</code></td> + <td width="100%"> + <code>int</code> <!-- no parameter comment --></td> + </tr> + </table> + + </div> +</div> + + + + + +<!-- ========= METHOD DETAIL ======== --> + + + +<!-- ========= END OF CLASS DATA ========= --> +<A NAME="navbar_top"></A> + +<div id="footer"> + +</div> <!-- end footer --> + +</div> <!-- jd-content --> + +</div><!-- end doc-content --> + +</div> <!-- end body-content --> + +<script type="text/javascript"> +init(); /* initialize android-developer-docs.js */ +</script> + +</body> +</html> |