Share via


AccessoryManager Class

Definition

Provides methods for registering and enabling notifications and other utilities for accessory devices like active phone covers, smart watches, or fitness bands.

public ref class AccessoryManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
class AccessoryManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
public static class AccessoryManager
Public Class AccessoryManager
Inheritance
Object Platform::Object IInspectable AccessoryManager
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced in v1.0)
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.

Properties

BatterySaverState

Gets a value indicating whether the battery saver is turned on.

DoNotDisturbEnabled

Gets a value indicating whether do not disturb is in effect on the phone.

DrivingModeEnabled

Gets a value indicating whether driving mode is in effect on the phone.

IsPhonePinLocked

Gets a value indicating whether the phone is locked.

MediaPlaybackCapabilities

Represents the allowable playback capabilities.

MediaPlaybackStatus

Gets the status of the media playing on the accessory.

PhoneCallAudioEndpoint

Gets or sets the end point of the call, including default, speaker, and hands-free.

PhoneLineDetails

Gets the detail information for the phone line.

PhoneMute

Gets or sets whether the phone call is muted.

SpeedDialList

Provides the list of speed dial list contacts and their contact information to the accessory.

VolumeInfo

Gets a value that represents the state of the phone volume.

Methods

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

Accepts an incoming phone call.

AcceptPhoneCall(UInt32)

Accepts an incoming phone call.

AcceptPhoneCallWithVideo(UInt32, PhoneCallAudioEndpoint)

Accepts an incoming video call.

AcceptPhoneCallWithVideo(UInt32)

Accepts an incoming video call.

ClearToast(String)

When a toast message is read on an accessory device, it can cause the toast to be cleared on the phone by using this method. The entry in the Action Center for the toast will be cleared as a visible result of calling this method.

DecreaseVolume(Int32)

Decreases the volume by the amount indicated.

DisableAllAccessoryNotificationTypes()

Opt out of getting notifications for toast and application uninstallation.

DisableEmailNotificationEmailAccount(String)

Disables notifications for the specified email account.

DisableNotificationsForApplication(String)

Opt out of getting toast and app uninstall notifications from the specified app.

DismissAlarm(Guid)

Dismisses the active alarm.

DismissAlarmByInstanceId(String)

Dismisses the alarm identified by the instance id.

DismissReminder(Guid)

Dismisses the active reminder.

DismissReminderByInstanceId(String)

Dismisses the reminder identified by the instance id.

EnableAccessoryNotificationTypes(Int32)

Opt into getting notifications for toast or app uninstallation.

EnableEmailNotificationEmailAccount(String)

Enables email notifications for specified email account.

EnableEmailNotificationFolderFilter(String, IVectorView<String>)

Enables email notifications for specified folders in specified account.

EnableNotificationsForApplication(String)

Opt into getting toast and app uninstall notifications from the specified app.

EndPhoneCall(UInt32)

Ends a phone call for the given phone call identifier.

GetAllEmailAccounts()

Gets the email accounts on the device.

GetAppIcon(String)

Gets an icon for the given application identifier.

GetApps()

Gets a dictionary containing the name and id of the toast capable apps on the device.

GetEnabledAccessoryNotificationTypes()

Gets a list of enable notification types, as represented by the AccessoryNotificationType enumeration.

GetFolders(String)

Gets a list of email folders that are defined on the phone.

GetMediaMetadata()

Gets the title, subtitle, artist, album, track number, thumbnail, and duration of the current track that is queued.

GetNextTriggerDetails()

Gets the next trigger details containing the information on the trigger, including notification type, display name, and time created.

GetPhoneLineDetails(Guid)

Gets details about the phone line, including line number, line id, display name, and voice mail count.

GetUserConsent()

Gets a boolean indicating whether the end-user has given consent to the accessory application to receive notifications.

HoldPhoneCall(UInt32, Boolean)

Places the current phone call on hold, or picks up the phone call from hold.

IncreaseVolume(Int32)

Increases the volume of the media playing on the phone.

IsNotificationEnabledForApplication(String)

Gets a value indicating whether the calling accessory application will receive toast notifications from the specified application.

MakePhoneCall(Guid, String, PhoneCallAudioEndpoint)

Makes a phone call.

MakePhoneCall(Guid, String)

Makes a phone call.

MakePhoneCallWithVideo(Guid, String, PhoneCallAudioEndpoint)

Makes a video phone call.

MakePhoneCallWithVideo(Guid, String)

Makes a video phone call.

PerformMediaPlaybackCommand(PlaybackCommand)

Performs an action on the media stream.

ProcessTriggerDetails(IAccessoryNotificationTriggerDetails)

Indicates to the AccessoryManager that the specified trigger details has been processed by the accessory. This will remove it from the AccessoryManager trigger details queue.

RegisterAccessoryApp()

Registers the accessory application with the AccessoryManager and returns the trigger 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.

RingDevice()

Rings the phone.

SetMute(Boolean)

Sets mute on the phone to on or off.

SetRingerVibrate(Boolean, Boolean)

An accessory can toggle on and off the ringer and vibrate settings on the phone.

SnoozeAlarm(Guid, TimeSpan)

Snoozes an alarm for the given time span.

SnoozeAlarm(Guid)

Snoozes an alarm.

SnoozeAlarmByInstanceId(String)

Snoozes the alarm identified by the instance id.

SnoozeReminder(Guid, TimeSpan)

Snoozes a reminder for the specified time span.

SnoozeReminder(Guid)

Snoozes a reminder.

SnoozeReminderByInstanceId(String)

Snoozes the reminder identified by the instance id.

SwapPhoneCalls(UInt32, UInt32)

Puts the current phone call on hold and then connects the on hold phone call.

UpdateEmailReadStatus(BinaryId, Boolean)

Updates whether the status of the email is read.

Applies to