code: def init_widget(self):
          
          super(AndroidBarcodeView, self).init_widget()
          d = self.declaration
  
          #: Observe activity state changes
          app = self.get_context()
          app.observe('state', self.on_activity_lifecycle_changed)
  
          if d.active:
              self.set_active(d.active)
          if d.light:
              self.set_light(d.light)
          self.widget.barcodeResult.connect(self.on_barcode_result)
          if d.scanning:
              self.set_scanning(d.scanning)
docs: Initialize the underlying widget.