Error: Permission Required Details: Symbol 'setEnabledSensors' not available to 'Data Field' "

Hello i'm trying to program a Data Field that shows the strokes per minute for kayaking, is similar conccept of swimming, my problem start when i try to use the adata from accelerometerData and i don't understand why because at the class list of APIDocs garmin says at app types, data field.