Share via


AccessoryManager.SetMute(Boolean) Method

Definition

Sets mute on the phone to on or off.

public:
 static void SetMute(bool mute);
 static void SetMute(bool const& mute);
public static void SetMute(bool mute);
function setMute(mute)
Public Shared Sub SetMute (mute As Boolean)

Parameters

mute
Boolean

bool

True if mute is set, otherwise false.

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.

Applies to