blob: 1d0664b764115cac19b899838ce18866fd8683a4 [file] [log] [blame] [edit]
// Copyright 2020-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#import <UIKit/UIKit.h>
@class MDCFlexibleHeaderView;
@class MDCFlexibleHeaderViewController;
/**
An object may conform to this protocol in order to receive layout change events caused by a
MDCFlexibleHeaderView.
*/
@protocol MDCFlexibleHeaderViewLayoutDelegate <NSObject>
@required
/**
Informs the receiver that the flexible header view's frame has changed.
The receiver should use the MDCFlexibleHeader scrollPhase APIs in order to react to the frame
changes.
*/
- (void)flexibleHeaderViewController:
(nonnull MDCFlexibleHeaderViewController *)flexibleHeaderViewController
flexibleHeaderViewFrameDidChange:(nonnull MDCFlexibleHeaderView *)flexibleHeaderView;
@end