deviceDeploymentReceived method

  1. @override
void deviceDeploymentReceived([
  1. PrimaryDeviceDeployment? deployment
])
override

Also takes the plain PrimaryDeviceDeployment that a deployment service like CAWS returns, and converts it to a SmartphoneDeployment.

Implementation

@override
void deviceDeploymentReceived([PrimaryDeviceDeployment? deployment]) => super.deviceDeploymentReceived(
  deployment == null || deployment is SmartphoneDeployment
      ? deployment as SmartphoneDeployment?
      : SmartphoneDeployment.fromPrimaryDeviceDeployment(
          studyDeploymentId: studyDeploymentId,
          deployment: deployment,
        ),
);