flag_from_string


Description:

[ Version ( since = "0.7.0" ) ]
public static DeviceFlags flag_from_string (string device_flag)

Converts a string to a DeviceFlags.

Parameters:

device_flag

A string, e.g. `require-ac`

Returns:

enumerated value