public function metering($mode)
    {
        $meteringModes = [
            self::METERING_AVERAGE,
            self::METERING_SPOT,
            self::METERING_BACKLIT,
            self::METERING_MATRIX,
        ];

        $this->assertInArray($mode, $meteringModes);

        $this->valueArguments['metering'] = $mode;

        return $this;
    }
public function metering($mode)
    {
        $meteringModes = [
            self::METERING_AVERAGE,
            self::METERING_SPOT,
            self::METERING_BACKLIT,
            self::METERING_MATRIX,
        ];

        $this->assertInArray($mode, $meteringModes);

        $this->valueArguments['metering'] = $mode;

        return $this;
    }
public function metering ( $ mode ) { $ meteringModes = [ self :: METERING_AVERAGE , self :: METERING_SPOT , self :: METERING_BACKLIT , self :: METERING_MATRIX , ] ; $ this -> assertInArray ( $ mode , $ meteringModes ) ; $ this -> valueArguments [ 'metering' ] = $ mode ; return $ this ; }
Set metering mode

Possible options are:
- 'average' `Raspicam::METERING_AVERAGE` Average the whole frame for metering
- 'spot' `Raspicam::METERING_SPOT` Spot metering
- 'backlit' `Raspicam::METERING_BACKLIT` Assume a backlit image
- 'matrix' `Raspicam::METERING_MATRIX` Matrix metering

@param string $mode

@return $this
Set metering mode