Patent ID: 8913953

Claim:
A method for controlling a function of an electronic device, wherein the electronic device comprises a first sensor and a second sensor, the method for controlling the function comprises: determining if a neighboring object nearing to the electronic device belongs to a target species with assist of the first sensor to generate a first determination result; determining if the neighboring object belongs to an exception species with assist of the second sensor to generate a second determination result; and adjusting the function executed by the electronic device according to the first determination result and the second determination result, wherein the first sensor is a dielectric sensor, and the step of determining if the neighboring object belongs to the target species with assist of the first sensor comprises: detecting if a dielectric value of the neighboring object is within a preset dielectric value range utilizing the dielectric sensor; and when the dielectric value of the neighboring object is within the preset dielectric value range, determining that the neighboring object belongs to the target species.