Instance Method

initWithType:primary:

Creates a newly initialized mutable service specified by UUID and service type.

Declaration

- (instancetype)initWithType:(CBUUID *)UUID primary:(BOOL)isPrimary;

Parameters

UUID

A 128-bit UUID that identifies the service.

isPrimary

A Boolean value that indicates whether the type of service is primary or secondary. If the value is YES, the type of service is primary. If the value is NO, the type of service is secondary.

Return Value

A newly initialized mutable service.

See Also