You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 856B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // @flow
  2. import {
  3. INCOMING_CALL_ANSWERED,
  4. INCOMING_CALL_DECLINED,
  5. INCOMING_CALL_RECEIVED
  6. } from './actionTypes';
  7. /**
  8. * Answers a received incoming call.
  9. *
  10. * @returns {{
  11. * type: INCOMING_CALL_ANSWERED
  12. * }}
  13. */
  14. export function incomingCallAnswered() {
  15. return {
  16. type: INCOMING_CALL_ANSWERED
  17. };
  18. }
  19. /**
  20. * Declines a received incoming call.
  21. *
  22. * @returns {{
  23. * type: INCOMING_CALL_DECLINED
  24. * }}
  25. */
  26. export function incomingCallDeclined() {
  27. return {
  28. type: INCOMING_CALL_DECLINED
  29. };
  30. }
  31. /**
  32. * Shows a received incoming call.
  33. *
  34. * @param {Object} caller - The caller of an incoming call.
  35. * @returns {{
  36. * type: INCOMING_CALL_RECEIVED,
  37. * caller: Object
  38. * }}
  39. */
  40. export function incomingCallReceived(caller: Object) {
  41. return {
  42. type: INCOMING_CALL_RECEIVED,
  43. caller
  44. };
  45. }