Skip to main content

Set Screen Name

Sets screen name for navigation events

Set a custom screen name for navigation events, which are fired when a screen loads. By default, the name of the UIViewController class for the screen is used. This name can be customized by conforming UIViewController (or its subclasses) to the FSScreen protocol and implementing the fullstoryScreenName property.

The fullstoryScreenName property is guaranteed to only be accessed on the main thread.

note

This is currently only used for UIViewController instances.

@protocol FSScreen <NSObject>

@property (nonnull, readonly, copy) NSString *fullstoryScreenName;

@end

Example Invocation

// .h file
@interface MyViewController: UIViewController <FSScreen>

@end

// .m file
@implementation MyViewController

- (NSString *)fullstoryScreenName {
return @"MyCustomScreenName";
}

@end