title: What is a CONTROL_REQUEST_CODE in android sdk 30?
body: <p>I had a code like this:</p>
  <pre><code>
      override fun createPublisherForAllAvailable(): Flow.Publisher&lt;Control&gt; {
          val context: Context = baseContext
          val i = Intent()
          val pi =
              PendingIntent.getActivity(
                  context, CONTROL_REQUEST_CODE, i,
                  PendingIntent.FLAG_UPDATE_CURRENT
              )
          val controls = mutableListOf&lt;Control&gt;()
          val control =
              Control.StatelessBuilder(&quot;reboot&quot;, pi)
                  // Required: The name of the control
                  .setTitle(&quot;Перезагрузка&quot;)
                  // Required: Usually the room where the control is located
                  .setSubtitle(&quot;Перезагружает устройство&quot;)
                  // Optional: Structure where the control is located, an example would be a house
                  .setStructure(&quot;Устройство&quot;)
                  // Required: Type of device, i.e., thermostat, light, switch
                  .setDeviceType(DeviceTypes.TYPE_SWITCH) // For example, DeviceTypes.TYPE_THERMOSTAT
                  .build()
          controls.add(control)
          // Create more controls here if needed and add it to the ArrayList
  
          // Uses the RxJava 2 library
          return FlowAdapters.toFlowPublisher(Flowable.fromIterable(controls))
      }
      override fun createPublisherFor(controlIds: MutableList&lt;String&gt;): Flow.Publisher&lt;Control&gt; {
          val context: Context = baseContext
          /* Fill in details for the activity related to this device. On long press,
           * this Intent will be launched in a bottomsheet. Please design the activity
           * accordingly to fit a more limited space (about 2/3 screen height).
           */
          val i = Intent(this, MainActivity::class.java)
          val pi =
              PendingIntent.getActivity(context, CONTROL_REQUEST_CODE, i, PendingIntent.FLAG_UPDATE_CURRENT)
          val updatePublisher = ReplayProcessor.create&lt;Control&gt;()
          val controls = mutableListOf&lt;Control&gt;()
          if (controlIds.contains(&quot;reboot&quot;)) {
  
              val control =
                  Control.StatefulBuilder(&quot;reboot&quot;, pi)
                      // Required: The name of the control
                      .setTitle(&quot;Перезагрузка&quot;)
                      // Required: Usually the room where the control is located
                      .setSubtitle(&quot;Перезагружает устройство&quot;)
                      // Optional: Structure where the control is located, an example would be a house
                      .setStructure(&quot;Устройство&quot;)
                      // Required: Type of device, i.e., thermostat, light, switch
                      .setDeviceType(DeviceTypes.TYPE_SWITCH) // For example, DeviceTypes.TYPE_THERMOSTAT
                      // Required: Current status of the device
                      .setStatus(Control.STATUS_UNKNOWN)
                      .build()
  
              updatePublisher.onNext(control)
              controls.add(control)
          }
  
          // If you have other controls, check that they have been selected here
  
          // Uses the Reactive Streams API
          //updatePublisher.onNext(control)
          return FlowAdapters.toFlowPublisher(Flowable.fromIterable(controls));
      }
  }
  </code></pre>
  <p>These code adds some some tools to shutdown menu. Later will add other buttons. But,
  what is a...</p>
  <pre><code>            PendingIntent.getActivity(context, CONTROL_REQUEST_CODE, i, PendingIntent.FLAG_UPDATE_CURRENT)
  </code></pre>
  <p>Control_request_code???
  Code from official android documentation, but there not writed explanation of this.
  Can someone say me, what to do with this?</p>