Electronic device and method for controlling vibration output thereof
An electronic device is provided. The electronic device includes a display, a communication module, a memory, and a processor, wherein the processor is configured to receive a vibration output request, detect vibration-related situation information, and generate vibration output information corresponding to the detected vibration-related situation information. The vibration-related situation information includes at least one from among information on at least one external electronic device connected to the electronic device, whether a specific application is being executed, and whether a specific function of the electronic device is being executed, and the vibration output information may include at least one from among vibration intensity, a vibration pattern, output device selection information, and priorities in the vibration-related situation information.
1 . An electronic device comprising:
a display;
a communication module;
memory storing instructions and including one or more storage mediums; and
at least one processor comprising processing circuitry,
wherein the instructions, when individually or collectively executed by the at least one processor, cause the electronic device to:
receive a vibration output request,
detect vibration-related situation information, and
generate vibration output information corresponding to the detected vibration-related situation information,
wherein the vibration-related situation information comprises at least one from among whether at least one external electronic device is connected to the electronic device, whether at least one function of a connected predetermined external electronic device is executed, a change in a form of the electronic device, a posture of the electronic device, and a surrounding environment of the electronic device, and
wherein the vibration output information comprises a vibration intensity, a vibration pattern, output device selection information, and a priority order of vibration-related situation information.
2 . The electronic device of claim 1 , wherein the instructions, when individually or collectively executed by the at least one processor, cause the electronic device to:
map the vibration-related situation information to the vibration output information to generate a vibration mapping table.
3 . The electronic device of claim 1 , wherein the instructions, when individually or collectively executed by the at least one processor, cause the electronic device to:
output a vibration based on the vibration output information.
4 . The electronic device of claim 1 ,
wherein the vibration-related situation information comprises whether a first external electronic device is connected, and
wherein the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
generate vibration output information including output device selection information that selects the first external electronic device as an output device.
5 . The electronic device of claim 4 , wherein the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
in case that a haptic output request signal is received, transmit, to the selected first external electronic device, a signal indicating output of a vibration.
6 . The electronic device of claim 1 ,
wherein the vibration-related situation information comprises whether a first external electronic device is connected and whether a second external electronic device is connected, and
wherein the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
generate vibration output information including output device selection information that selects the first external electronic device as an output device.
7 . The electronic device of claim 1 ,
wherein the vibration-related situation information comprises whether a third external electronic device is connected and whether a third application is executed, and
wherein the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
generate vibration output information including output device selection information that selects the third external electronic device as an output device.
8 . The electronic device of claim 1 ,
wherein the vibration-related situation information comprises whether a first application is executed and whether a first function that simultaneously performs a plurality of applications is executed,
wherein the vibration output information further comprises a priority order of vibration output of a predetermined application, and
wherein, in case that a plurality of applications including the first application are executed, the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
generate vibration output information including information that selects a priority order of vibration output of the first application as a highest priority order.
9 . The electronic device of claim 1 , wherein the vibration-related situation information further comprises a form of the electronic device and a posture of the electronic device.
10 . The electronic device of claim 1 , wherein the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
display the vibration-related situation information and the vibration output information, and to display a user interface that receives input for selecting the vibration-related situation information and the vibration output information in the display, and
produce vibration mapping information associated with mapping between the selected vibration-related situation information and the selected vibration output information.
11 . The electronic device of claim 1 ,
wherein the instructions, when individually or collectively executed by the at least one processor, further cause the electronic device to:
in case that an external electronic device is connected, receive vibration function information from the external electronic device, and
wherein the vibration function information comprises at least one of whether a vibration is capable of being output, an intensity of a vibration that the external electronic device is capable of outputting, and a vibration pattern.
12 . A method of controlling vibration output by an electronic device, the method comprising:
receiving a vibration output request;
detecting vibration-related situation information; and
generating vibration output information corresponding to the detected vibration-related situation information,
wherein the vibration-related situation information comprises at least one from among whether at least one external electronic device is connected to the electronic device, whether at least one function of a connected predetermined external electronic device is executed, a change in a form of the electronic device, a posture of the electronic device, and a surrounding environment of the electronic device, and
wherein the vibration output information comprises a vibration intensity, a vibration pattern, output device selection information, and a priority order of vibration-related situation information.
13 . The method of claim 12 , further comprising:
mapping the vibration-related situation information to the vibration output information to generate a vibration mapping table.
14 . The method of claim 12 , further comprising:
outputting a vibration based on the vibration output information.
15 . The method of claim 12 ,
wherein the vibration-related situation information comprises whether a first external electronic device is connected, and
wherein the generating of the vibration output information comprises generating vibration output information including output device selection information that selects the first external electronic device as an output device.