SDLServiceEncryptionDelegate Protocol Reference

Section Contents

Overview

Delegate for the encryption service.

-serviceEncryptionUpdatedOnService:encrypted:error:

Called when the encryption service has been.

Objective-C

- (void)serviceEncryptionUpdatedOnService:(SDLServiceType)type
                                encrypted:(BOOL)encrypted
                                    error:(NSError *_Nullable)error;

Swift

func serviceEncryptionUpdated(serviceType type: SDLServiceType, isEncrypted encrypted: Bool, error: Error?)

Parameters

type

will return whichever type had an encryption update (for now probably only SDLServiceTypeRPC), but it could also apply to video / audio in the future.

encrypted

return true if the encryption service was setup successfully, will return false if the service is presently not encrypted.

error

will return any error that happens or nil if there is no error.