BNBLayer
Objective-C
@interface BNBLayer : NSObject
/**
*Fabric method for layer creating.
*@return created layer (layer).
*/
+ (nullable BNBLayer *)create:(nonnull NSString *)name;
/**
*set layer name
*@param layer name (string)
*/
- (void)setName:(nonnull NSString *)name;
/**@return layer name (string) */
- (nonnull NSString *)getName;
/**
*Set enable/disable layer flag. The disabled layer will not be rendered.
*@param active (bool) activity flag.
*/
- (void)setActive:(BOOL)active;
/**@return activity flag (bool) */
- (BOOL)isActive;
/**
*ability for enable/disable morphing in specified layer
*@param enable (bool)
*/
- (void)enableMorphing:(BOOL)enable;
/**@return is morphing enable in the current layer */
- (BOOL)isMorphingEnabled;
@end
Swift
class BNBLayer : NSObject
Undocumented
-
Fabric method for layer creating.
Declaration
Objective-C
+ (nullable BNBLayer *)create:(nonnull NSString *)name;
Swift
class func create(_ name: String) -> BNBLayer?
Return Value
created layer (layer).
-
set layer name
Declaration
Objective-C
- (void)setName:(nonnull NSString *)name;
Swift
func setName(_ name: String)
Parameters
layer
name (string)
-
Declaration
Objective-C
- (nonnull NSString *)getName;
Swift
func getName() -> String
Return Value
layer name (string)
-
Set enable/disable layer flag. The disabled layer will not be rendered.
Declaration
Objective-C
- (void)setActive:(BOOL)active;
Swift
func setActive(_ active: Bool)
Parameters
active
(bool) activity flag.
-
Declaration
Objective-C
- (BOOL)isActive;
Swift
func isActive() -> Bool
Return Value
activity flag (bool)
-
ability for enable/disable morphing in specified layer
Declaration
Objective-C
- (void)enableMorphing:(BOOL)enable;
Swift
func enableMorphing(_ enable: Bool)
Parameters
enable
(bool)
-
Declaration
Objective-C
- (BOOL)isMorphingEnabled;
Swift
func isMorphingEnabled() -> Bool
Return Value
is morphing enable in the current layer