SDLUnsubscribeButton Class Reference

Section Contents

Overview

Deletes a subscription to button notifications for the specified button. For more information about button subscriptions, see SDLSubscribeButton

Application can unsubscribe from a button that is currently being pressed (i.e. has not yet been released), but app will not get button event

HMILevel needs to be FULL, LIMITED or BACKGROUND

@since SmartDeviceLink 1.0
See SDLSubscribeButton

-initWithButtonName:

Convenience init to unsubscribe from a subscription button

Objective-C

- (nonnull instancetype)initWithButtonName:(nonnull SDLButtonName)buttonName;

Swift

init(buttonName: SDLButtonName)

Parameters

buttonName

A name of the button to unsubscribe from

Return Value

A name of the button to unsubscribe from

buttonName

A name of the button to unsubscribe from @discussion An Enumeration value, see SDLButtonName

Objective-C

@property (nonatomic, strong) SDLButtonName _Nonnull buttonName;

Swift

var buttonName: SDLButtonName { get set }