AccessoryManager.RejectPhoneCall Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RejectPhoneCall(UInt32) |
Rejects a phone call with the given identifier. |
RejectPhoneCall(UInt32, UInt32) |
Rejects a phone call with the given identifier and sends a SMS response. |
RejectPhoneCall(UInt32)
Rejects a phone call with the given identifier.
public:
static void RejectPhoneCall(unsigned int phoneCallId);
/// [Windows.Foundation.Metadata.Overload("RejectPhoneCall")]
static void RejectPhoneCall(uint32_t const& phoneCallId);
[Windows.Foundation.Metadata.Overload("RejectPhoneCall")]
public static void RejectPhoneCall(uint phoneCallId);
function rejectPhoneCall(phoneCallId)
Public Shared Sub RejectPhoneCall (phoneCallId As UInteger)
Parameters
- phoneCallId
-
UInt32
unsigned int
uint32_t
The phone call identifier.
- Attributes
Windows requirements
App capabilities |
accessoryManager
|
Remarks
Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.
See also
Applies to
RejectPhoneCall(UInt32, UInt32)
Rejects a phone call with the given identifier and sends a SMS response.
public:
static void RejectPhoneCall(unsigned int phoneCallId, unsigned int textResponseID);
/// [Windows.Foundation.Metadata.Overload("RejectPhoneCallWithText")]
static void RejectPhoneCall(uint32_t const& phoneCallId, uint32_t const& textResponseID);
[Windows.Foundation.Metadata.Overload("RejectPhoneCallWithText")]
public static void RejectPhoneCall(uint phoneCallId, uint textResponseID);
function rejectPhoneCall(phoneCallId, textResponseID)
Public Shared Sub RejectPhoneCall (phoneCallId As UInteger, textResponseID As UInteger)
Parameters
- phoneCallId
-
UInt32
unsigned int
uint32_t
The phone call identifier.
- textResponseID
-
UInt32
unsigned int
uint32_t
The identifier for the TextResponse.
- Attributes
Windows requirements
App capabilities |
accessoryManager
|
Remarks
Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.