blob: c51c075847f13f3435f6f6e141629a0ecebf15b6 [file]
/*
Copyright 2016-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 "MDCSnackbarMessage.h"
/**
Internal-only methods used by MDCSnackbarMessage and MDCSnackbarManager.
*/
@interface MDCSnackbarMessage ()
/**
The class of the view which should be instantiated in order to show this message.
The class returned by this method must be a subclass of MDCSnackbarMessageView.
*/
- (Class)viewClass;
/**
Executes @c self.completionhandler on the main thread.
@c completion is called after @c self.completionHandler has executed. If @c self.completionHandler
is nil, then @c completion fires immediately from the calling thread.
*/
- (void)executeCompletionHandlerWithUserInteraction:(BOOL)userInteraction
completion:(void (^)(void))completion;
/**
Given @c action, which must be in @c self.actions, this method will call the action handler on
@c self.targetQueue.
@c completion is called after the handler has executed. If @c action.handler is nil, then
@c completion fires immediately from the calling thread. Passing a nil @c action will immediately
call @c completion.
*/
- (void)executeActionHandler:(MDCSnackbarMessageAction *)action
completion:(void (^)(void))completion;
@end