Querying a Single Feature Statically Using CFeatureDiscovery

How to query a feature using CFeatureDiscovery statically.

To query whether a feature is supported using CFeatureDiscovery statically, take the following steps.


  1. Determine the Uid of the feature.

  2. Call CFeatureDiscovery::IsFeatureSupportedL() with the Uid of the feature as argument. To query a feature statically you do not need to create an instance of CFeatureDiscovery.
    
      // Static way of using the class:
      TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(<featureUIDx>);
    

IsSupportedL() returns KErrNone if the feature is supported or else an error message.